书籍列表接口新增参数

This commit is contained in:
2025-08-13 15:19:42 +08:00
parent 6ccc87f2bf
commit 8afe651c64
201 changed files with 6987 additions and 1066 deletions

View File

@ -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
}