forked from all_user/stat_center
50 lines
2.1 KiB
Go
50 lines
2.1 KiB
Go
package proto
|
|
|
|
import "stat/common"
|
|
|
|
// LandingPageInfo 落地页管理
|
|
type LandingPageInfo struct {
|
|
ID int64 `form:"id" json:"id"` //Id
|
|
AppId int32 `form:"appId" json:"appId"` //appId
|
|
Url string `form:"url" json:"url"` //Url
|
|
Status bool `form:"status" json:"status" binding:"required"` //状态 默认true
|
|
ChannelCode string `form:"channelCode" json:"channelCode"` //渠道码
|
|
Type int32 `form:"type" json:"type" binding:"required"` //类型 1:渠道 2:分享
|
|
Remark string `form:"remark" json:"remark"` //备注
|
|
}
|
|
|
|
// 响应落地页列表
|
|
type LandingPageListRes struct {
|
|
Total int64 `json:"total"`
|
|
List []LandingPageInfo `json:"list"`
|
|
}
|
|
|
|
// 新增落地页账号
|
|
type AddLandingPageReq struct {
|
|
AppId *int32 `form:"appId" json:"appId" binding:"required"` //appId
|
|
Url *string `form:"url" json:"url" binding:"required"` //Url
|
|
Status *bool `form:"status" json:"status" binding:"required"` //状态 默认true
|
|
ChannelCode *string `form:"channelCode" json:"channelCode"` //渠道码
|
|
Remark *string `form:"remark" json:"remark"` //备注
|
|
Type *int32 `form:"type" json:"type" binding:"required"` //类型 1:渠道 2:分享
|
|
}
|
|
|
|
// 更新落地页信息
|
|
type UpdateLandingPageReq struct {
|
|
ID int64 `form:"id" json:"id" binding:"required"` //Id
|
|
Status *bool `form:"status" json:"status" binding:"omitempty"` //状态 默认true
|
|
Url *string `form:"url" json:"url" binding:"omitempty"` //Url
|
|
ChannelCode *string `form:"channelCode" json:"channelCode"` //渠道码
|
|
Remark *string `form:"remark" json:"remark" binding:"omitempty"` //备注
|
|
Type *int32 `form:"type" json:"type" binding:"required"` //类型 1:渠道 2:分享
|
|
}
|
|
|
|
type DelLandingPageReq struct {
|
|
ID int64 `form:"id" json:"id" binding:"required"` //Id
|
|
}
|
|
|
|
type FindLandingPageReq struct {
|
|
AppId int32 `form:"appId" json:"appId" binding:"required"` //appId
|
|
common.Page
|
|
}
|