forked from all_user/stat_center
64 lines
1.6 KiB
Go
64 lines
1.6 KiB
Go
package statApi
|
|
|
|
import (
|
|
"stat/api/proto"
|
|
"stat/common/stdLog"
|
|
"stat/service/statSer"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// @Tags 游戏统计
|
|
// @Summary 提现列表
|
|
// @Description 提现列表
|
|
// @Accept json
|
|
// @Produce json
|
|
// @Security ApiKeyAuth
|
|
// @Param param body proto.ListBlocWithdrawDetailsReq true "参数列表"
|
|
// @Success 200 {object} proto.ListBlocWithdrawDetailsRes "成功"
|
|
// @Failure 400 {string} string "失败"
|
|
// @Security ApiKeyAuth
|
|
// @Router /api/stat/game/withdraw/list [POST]
|
|
func GameWithdrawDetails(ctx *gin.Context) {
|
|
param := proto.ListBlocWithdrawDetailsReq{}
|
|
if err := ctx.ShouldBind(¶m); err != nil {
|
|
stdLog.ServerJSON(ctx, stdLog.ParamError, err.Error())
|
|
return
|
|
}
|
|
|
|
code, data, err := statSer.GameWithdrawList(ctx, param)
|
|
if err != nil {
|
|
stdLog.ServerJSON(ctx, code, err.Error())
|
|
return
|
|
}
|
|
|
|
stdLog.ServerJSON(ctx, code, data)
|
|
}
|
|
|
|
// @Tags 日常统计
|
|
// @Summary日常统计充值详情(集团)
|
|
// @Description 日常统计列表
|
|
// @Accept json
|
|
// @Produce json
|
|
// @Security ApiKeyAuth
|
|
// @Param param body proto.ListBlocRechargeDetailsReq true "参数列表"
|
|
// @Success 200 {object} proto.ListBlocRechargeDetailsRes "成功"
|
|
// @Failure 400 {string} string "失败"
|
|
// @Security ApiKeyAuth
|
|
// @Router /api/stat/game/recharge/list [POST]
|
|
func GameRechargerDetails(ctx *gin.Context) {
|
|
param := proto.ListBlocRechargeDetailsReq{}
|
|
if err := ctx.ShouldBind(¶m); err != nil {
|
|
stdLog.ServerJSON(ctx, stdLog.ParamError, err.Error())
|
|
return
|
|
}
|
|
|
|
code, data, err := statSer.GameRechargeList(ctx, param)
|
|
if err != nil {
|
|
stdLog.ServerJSON(ctx, code, err.Error())
|
|
return
|
|
}
|
|
|
|
stdLog.ServerJSON(ctx, code, data)
|
|
}
|