新增管理员用户删除,修改反馈,任务列表
This commit is contained in:
@ -24,7 +24,7 @@ func (s *sGame) GameList(ctx context.Context, in *model.GameListIn) (out *model.
|
||||
|
||||
list := make([]model.Game, 0)
|
||||
var total int
|
||||
err = dao.Games.Ctx(ctx).Page(in.Page, in.Size).ScanAndCount(&list, &total, false)
|
||||
err = dao.Games.Ctx(ctx).Page(in.Page, in.Size).OrderDesc(dao.Games.Columns().CreatedAt).ScanAndCount(&list, &total, false)
|
||||
if err != nil {
|
||||
return nil, ecode.Fail.Sub("游戏列表获取失败")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user