书籍列表接口新增参数
This commit is contained in:
@ -2,11 +2,12 @@ package admin
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"server/internal/model"
|
||||
"server/internal/service"
|
||||
|
||||
"server/api/admin/v1"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
v1 "server/api/admin/v1"
|
||||
)
|
||||
|
||||
func (c *ControllerV1) Info(ctx context.Context, req *v1.InfoReq) (res *v1.InfoRes, err error) {
|
||||
@ -17,7 +18,8 @@ func (c *ControllerV1) Info(ctx context.Context, req *v1.InfoReq) (res *v1.InfoR
|
||||
return nil, err
|
||||
}
|
||||
return &v1.InfoRes{
|
||||
AdminId: out.AdminId,
|
||||
Id: out.Id,
|
||||
Username: out.Username,
|
||||
Role: out.Role,
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user