Files
2026-05-20 16:13:58 +08:00

44 lines
1.8 KiB
Go

package proto
import (
"stat/models/landpageImg"
"time"
)
type LandpagePictureSearch struct {
Name *string `json:"name" bson:"name"` // 分类名称
Status *bool `json:"status" bson:"status"` // 是否启用
PageNum int64 `json:"pageNum"`
PageSize int64 `json:"pageSize"`
}
type LandpagePictureSearchResp struct {
Total int64 `json:"total"`
List landpageImg.LandpageImgList `json:"list"`
}
type LandpagePictureUpdate struct {
Name *string `bson:"name,omitempty" json:"name,omitempty"` // 名称
PcAvatar *string `json:"pcAvatar" bson:"pcAvatar,omitempty"` // PC端图片
MobileAvatar *string `json:"mobileAvatar" bson:"mobileAvatar,omitempty"` // 移动端图片
PcBackgroud *string `json:"pcBackgroud" bson:"pcBackgroud,omitempty"` // PC端背景图
MobileBackgroud *string `json:"mobileBackgroud" bson:"mobileBackgroud,omitempty"` // 移动端背景图
Music *string `json:"music" bson:"music,omitempty"` // 音频文件
Rank *int64 `json:"rank" bson:"rank,omitempty"` // 排序
Status *bool `json:"status,omitempty" bson:"status,omitempty"` // 是否启用
PcTitle *string `json:"pcTitle" bson:"pcTitle,omitempty"` // PC端标语
MobileTiltle *string `json:"mobileTiltle" bson:"mobileTiltle,omitempty"` // 移动端标语
UpdatedAt *time.Time `json:"updatedAt" bson:"updatedAt,omitempty"` // 更新时间
}
type LandpagePictureUpdateReq struct {
Id string `json:"id"`
Param *LandpagePictureUpdate `json:"param"` // 参数
}
type LandpagePictureAddReq struct {
landpageImg.LandpageImg
}
type LandpagePictureDelReq struct {
Id string `json:"id"`
}