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.

22 lines
1.1 KiB

package model
import "pure/global"
type Banner 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
Sort int `gorm:"" json:"sort"` //排序
Status string `gorm:"size:4" json:"status"` //状态 0=下架 1=上架
CreateBy string `gorm:"size:64" json:"createBy"` //创建人
UpdateBy string `gorm:"size:64" json:"updateBy"` //更新人
global.MG_MODEL
}
func (Banner) TableName() string {
return "banner"
}