Files
rootandClaude Opus 5 8679200f41 Initial commit
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 13:57:10 +08:00

34 lines
909 B
Go

package adv_group_ctrl
import (
"91porn-server/common"
"91porn-server/common/stderr"
"91porn-server/web/service/advgroupser"
"github.com/gin-gonic/gin"
)
// @Tags 广告AB测试
// @Summary 查询广告统计数据
// @Description 查询广告统计数据
// @Accept json
// @Produce json
// @Param param body advgroupser.AdGroupStatReq true "参数列表"
// @Success 200 {object} advgroupser.QueryRes "成功"
// @Failure 400 {string} string "获取失败的返回结果"
// @Router /api/web/admin/adgroup/list [POST]
func GetAdGroupStatList(ctx *gin.Context) {
var req = &advgroupser.AdGroupStatReq{}
if err := ctx.ShouldBind(req); err != nil {
common.ServeJSON(ctx, stderr.ErrParamError, nil)
return
}
resp, serr := advgroupser.GetAdGroupStatList(ctx, req)
if serr != nil {
common.ServeJSON(ctx, stderr.ErrDbQueryError, nil)
return
}
common.ServeJSON(ctx, stderr.Success, resp)
}