package guser import ( "github.com/gin-gonic/gin" "github.com/liangdas/mqant/log" "server/common" "server/db" "server/modules/backend/values" "server/modules/customer/app" ) func GetGameUserAllBalance(c *gin.Context) { a := app.NewApp(c) defer func() { a.Response() }() req := new(values.GetGameUserAllBalanceReq) if !a.S(req) { return } resp := values.GetGameUserAllBalanceResp{ List: []common.CurrencyBalance{}, } var count int64 var err error count, err = db.ES().QueryPlayerAllBalance(&req.UID, req.Page-1, req.Num, req.Start, req.End, &resp.List) if err != nil { log.Error("err:%v", err) a.Code = values.CodeRetry return } resp.Count = count a.Data = resp }