You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.7 KiB
34 lines
1.7 KiB
package request
|
|
|
|
import (
|
|
"pure-admin/global"
|
|
)
|
|
|
|
type CreateBanner struct {
|
|
RelationId string `gorm:"size:50" json:"relationId"` //关联项目id
|
|
RelationType string `gorm:"size:4" json:"relationType"` //关联类型 01-任务
|
|
Title string `gorm:"size:80" json:"title"` //标题
|
|
CoverUrl string `gorm:"size:500" json:"coverUrl"` //封面图
|
|
LinkType string `gorm:"size:2" json:"linkType" form:"linkType"` //链接类型 0:内链 1:外链
|
|
Link string `gorm:"size:500" json:"link"` //链接地址
|
|
Type string `gorm:"size:4" json:"type"` //任务-0101 平台奖励页-0102
|
|
Status string `gorm:"size:4" json:"status"` //状态 0=下架 1=上架
|
|
}
|
|
|
|
type UpdateBanner struct {
|
|
global.BASE_ID
|
|
RelationId string `gorm:"size:50" json:"relationId"` //关联项目id
|
|
RelationType string `gorm:"size:4" json:"relationType"` //关联类型 01-任务
|
|
Title string `gorm:"size:80" json:"title"` //标题
|
|
CoverUrl string `gorm:"size:500" json:"coverUrl"` //封面图
|
|
LinkType string `gorm:"size:2" json:"linkType" form:"linkType"` //链接类型 0:内链 1:外链
|
|
Link string `gorm:"size:500" json:"link"` //链接地址
|
|
Type string `gorm:"size:4" json:"type"` //任务-0101 平台奖励页-0102
|
|
Status string `gorm:"size:4" json:"status"` //状态 0=下架 1=上架
|
|
}
|
|
|
|
type SearchBanner struct {
|
|
Title string `json:"title" form:"title"` //名称
|
|
Status string `json:"status" form:"status"` //状态 0=下架 1=上架
|
|
PageInfo
|
|
}
|
|
|