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.
27 lines
936 B
27 lines
936 B
package model
|
|
|
|
import (
|
|
"pure/global"
|
|
)
|
|
|
|
type MissionRecommend struct { //任务推荐
|
|
RelationId uint `gorm:"type:int(11);" json:"relation_id"` //关联ID,任务视频ID
|
|
CreateBy string `gorm:"size:64" json:"create_by"` //创建人
|
|
Status int `gorm:"type:tinyint(1);" json:"status"` //状态 1:上架 2:下架
|
|
Sort int `gorm:"type:tinyint(2)" json:"sort"` //倒序 //排序
|
|
UpdateBy string `gorm:"size:64" json:"-"` //更新人
|
|
global.MG_MODEL
|
|
}
|
|
|
|
type MissionRecommendDetail struct { //任务推荐
|
|
MissionRecommend //更新人
|
|
MissionVideo MissionClaimVideoDetail `gorm:"ForeignKey:ID;References:RelationId" json:"mission_video"` //任务视频信息
|
|
}
|
|
|
|
func (MissionRecommend) TableName() string {
|
|
return "mission_recommend"
|
|
}
|
|
|
|
func (MissionRecommendDetail) TableName() string {
|
|
return "mission_recommend"
|
|
}
|
|
|