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
825 B
26 lines
825 B
package model
|
|
|
|
import "pure-admin/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 {
|
|
ID uint `gorm:"AUTO_INCREMENT;primary_key;" json:"id" form:"id"` //主键
|
|
Name string `gorm:"size:20" json:"name"` //标签名称
|
|
}
|
|
|
|
func (TagRelation) TableName() string {
|
|
return "tag_relation"
|
|
}
|
|
|
|
func (TagRelationDesc) TableName() string {
|
|
return "tag_relation"
|
|
}
|
|
|