forked from all_user/stat_center
72 lines
2.9 KiB
Go
72 lines
2.9 KiB
Go
package proto
|
|
|
|
import (
|
|
"stat/common"
|
|
"stat/models/landPageConfig"
|
|
"time"
|
|
)
|
|
|
|
// LandingPageConfig
|
|
type LandingPageConfig struct {
|
|
Title string `json:"title" bson:"title"` //主题
|
|
Desc string `json:"desc" bson:"desc"` //描述
|
|
Actor string `json:"actor" bson:"actor"` //演员
|
|
Bango string `json:"bango" bson:"bango"` //番号,唯一
|
|
AddedTime time.Time `json:"addedTime" bson:"addedTime"` //上架时间(审核通过时间)
|
|
Picture string `json:"picture" bson:"picture"` //图片
|
|
Media string `json:"media" bson:"media"` //视频
|
|
Rank int64 `json:"rank" bson:"rank"` //排序
|
|
}
|
|
type LandingPageConfigList []*LandingPageConfig
|
|
|
|
// 响应落地页配置列表
|
|
type LandPageConfigListResp struct {
|
|
Total int64 `json:"total"`
|
|
List landPageConfig.LandPageConfigList `json:"list"`
|
|
}
|
|
|
|
// 新增落地页账号
|
|
type AddLandPageConfigReq struct {
|
|
AppId *int32 `json:"appId" binding:"required"` //appId
|
|
LandPageType *int8 `json:"landPageType" binding:"required"` //类型,1PC端,2移动端
|
|
Title *string `json:"title" binding:"required"` //主题
|
|
Desc *string `json:"desc" bson:"desc"` //描述
|
|
Actor *string `json:"actor" bson:"actor"` //演员
|
|
Bango *string `json:"bango" bson:"bango"` //番号,唯一
|
|
AddedTime *time.Time `json:"addedTime" bson:"addedTime"` //上架时间(审核通过时间)
|
|
Picture *string `json:"picture" bson:"picture"` //图片
|
|
Media *string `json:"media" bson:"media"` //视频
|
|
Rank *int64 `json:"rank" bson:"rank"` //排序
|
|
Status *bool `json:"status"` //状态
|
|
}
|
|
|
|
// 更新落地页信息
|
|
type UpdateLandPageConfigReq struct {
|
|
ID int64 `json:"id" binding:"required"` //Id
|
|
Title *string `json:"title" binding:"required"` //主题
|
|
Desc *string `json:"desc" bson:"desc"` //描述
|
|
Actor *string `json:"actor" bson:"actor"` //演员
|
|
Bango *string `json:"bango" bson:"bango"` //番号,唯一
|
|
AddedTime *time.Time `json:"addedTime" bson:"addedTime"` //上架时间(审核通过时间)
|
|
Picture *string `json:"picture" bson:"picture"` //图片
|
|
Media *string `json:"media" bson:"media"` //视频
|
|
Rank *int64 `json:"rank" bson:"rank"` //排序
|
|
Status *bool `json:"status"` //状态
|
|
}
|
|
|
|
type DelLandPageConfigReq struct {
|
|
ID int64 `form:"id" json:"id" binding:"required"` //Id
|
|
}
|
|
|
|
type FindLandPageConfigReq struct {
|
|
AppId *int32 `json:"appId"` //appId
|
|
Type *int8 `json:"type"`
|
|
Status *bool `json:"status"`
|
|
common.Page
|
|
}
|
|
type GetLandPageConfigByTypeReq struct {
|
|
AppId int32 `json:"appId" binding:"required"` //appId
|
|
Type int8 `json:"type"`
|
|
common.Page
|
|
}
|