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.

26 lines
732 B

package model
import "pure/global"
// 组件内容
type TagRelation struct {
global.MG_MODEL
TagId uint `json:"tagId"` //组件id
RelationId string `gorm:"size:50" json:"relationId"` //关联项目id
RelationType string `gorm:"size:4" json:"relationType"` //项目类型 01-任务 02-任务视频 03-网红
CreateBy string `gorm:"size:64" json:"createBy"` //创建人
UpdateBy string `gorm:"size:64" json:"updateBy"` //更新人
}
type TagRelationDesc struct {
global.BASE_ID_STR
Name string `gorm:"size:20" json:"name"` //标签名称
}
func (TagRelation) TableName() string {
return "tag_relation"
}
func (TagRelationDesc) TableName() string {
return "tag_relation"
}