Files
stat_center/api/proto/cpcDownloadCfg.go
2026-06-30 16:16:55 +08:00

47 lines
1.6 KiB
Go

package proto
import "stat/models/cpcDownloadCfg"
// CpcDownloadCfgListReq 列表请求
type CpcDownloadCfgListReq struct {
AppId *int32 `json:"appId" form:"appId"` // 可选,按 appId 过滤
Channel string `json:"channel" form:"channel"` // 可选,按 channel 模糊匹配
Status *bool `json:"status" form:"status"` // 可选,按状态过滤
PageNum int64 `json:"pageNum" form:"pageNum" binding:"required,gte=1"`
PageSize int64 `json:"pageSize" form:"pageSize" binding:"required,gte=1,lte=200"`
}
// CpcDownloadCfgListResp 列表返回
type CpcDownloadCfgListResp struct {
Total int64 `json:"total"`
List cpcDownloadCfg.CpcDownloadCfgList `json:"list"`
}
// AddCpcDownloadCfgReq 新增请求
type AddCpcDownloadCfgReq struct {
AppId int32 `json:"appId" binding:"required"`
Channel string `json:"channel"`
LandingPage string `json:"landingPage"`
DownloadUrl string `json:"downloadUrl"`
IosDownSuff string `json:"iosDownSuff"`
Remark string `json:"remark"`
Status bool `json:"status"`
}
// UpdateCpcDownloadCfgReq 更新请求
type UpdateCpcDownloadCfgReq struct {
Id int64 `json:"id" binding:"required"`
AppId *int32 `json:"appId"`
Channel *string `json:"channel"`
LandingPage *string `json:"landingPage"`
DownloadUrl *string `json:"downloadUrl"`
IosDownSuff *string `json:"iosDownSuff"`
Remark *string `json:"remark"`
Status *bool `json:"status"`
}
// DelCpcDownloadCfgReq 删除请求
type DelCpcDownloadCfgReq struct {
Id int64 `json:"id" binding:"required"`
}