增加双端下载

This commit is contained in:
2026-06-30 16:16:55 +08:00
parent 7444fc5c48
commit bc605f303d
13 changed files with 739 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
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"`
}