You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
698 B
34 lines
698 B
package guser |
|
|
|
import ( |
|
"github.com/gin-gonic/gin" |
|
"github.com/liangdas/mqant/log" |
|
"server/common" |
|
"server/db" |
|
"server/modules/customer/app" |
|
"server/modules/backend/values" |
|
) |
|
|
|
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 |
|
}
|
|
|