package web_recharge import ( "videoweb/pub/common" "videoweb/pub/common/srvdef" "videoweb/web/service/srv_viporder" "github.com/gin-gonic/gin" ) // RechargeSummary 统计指定时间范围内的充值汇总 // @Tags wbapi统计 // @Summary 统计充值汇总 // @Description 按北京时间的开始/结束时间汇总支付成功订单金额与笔数 // @Accept json // @Produce json // @Param startTime query string true "开始时间,北京时间,支持 2006-01-02、2006-01-02 15:04:05、RFC3339" // @Param endTime query string true "结束时间,北京时间,支持 2006-01-02、2006-01-02 15:04:05、RFC3339" // @Success 200 {object} srv_viporder.RechargeSummaryResp "成功" // @Failure 400 {string} string "失败" // @Router /wbapi/hddjweb/recharge/summary [GET] func RechargeSummary(ctx *gin.Context) { var req srv_viporder.RechargeSummaryReq if err := ctx.ShouldBindQuery(&req); err != nil { common.ServerJSON(ctx, srvdef.ErrParamError, err.Error()) return } resp, serr := srv_viporder.GetRechargeSummary(ctx, &req) if serr != nil { common.ServerJSON(ctx, serr, nil) return } common.ServerJSON(ctx, srvdef.Success, resp) }