新增管理员用户删除,修改反馈,任务列表

This commit is contained in:
chy
2025-06-17 18:26:39 +08:00
parent e21353df23
commit 876363f9b4
31 changed files with 352 additions and 110 deletions

View File

@ -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("游戏列表获取失败")
}