印度包网
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.
 
 
 

35 lines
709 B

package statistics
import (
"server/modules/backend/app"
utils "server/modules/backend/util"
"server/modules/backend/values"
"github.com/gin-gonic/gin"
)
// WithdrawListDetail 获取个人退出详细统计数据
func WithdrawListDetail(c *gin.Context) {
a := app.NewApp(c)
defer func() {
a.Response()
}()
req := new(values.WithdrawDetailReq)
if !a.S(req) {
return
}
start := req.Start
end := req.End
if start > end {
a.Code = values.CodeParam
a.Msg = "查询时间不合法"
return
}
resp := values.WithdrawDetailResp{}
for i := 0; i < len(resp.List); i++ {
resp.List[i].WithDrawPer = utils.GetPer(resp.List[i].WithdrawAmount, resp.List[i].RechargeTotal)
}
a.Data = resp
}