Documentation ¶
Overview ¶
标签模块
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Link ¶ added in v0.0.23
创建连接 将连接创建到普通tag标签上,而不是alias别名上
target_id 对象表名 target_name 对象名称 tag_id 标签ID
Types ¶
type Tag ¶
type Tag struct { Id uint `gorm:"column:id;primaryKey;type:INT UNSIGNED;not null;autoIncrement" json:"id" form:"id"` Name string `gorm:"column:name;type:VARCHAR(200);comment:标签名称" json:"name" form:"name"` // 标签名 AliasId uint `` // 标签所属主签ID 0-普通标签 /* 130-byte string literal not displayed */ Uid uint `gorm:"column:uid;type:INT UNSIGNED;comment:创建人ID 0-系统标签" json:"uid" form:"uid"` // 创建人ID 0-系统标签 CreatedAt string `gorm:"column:created_at;type:DATETIME;comment:添加时间" json:"created_at" form:"created_at"` //添加时间 UpdatedAt string `gorm:"column:updated_at;type:DATETIME;comment:处理时间" json:"updated_at" form:"updated_at"` //处理时间 }
标签表
type TagLink ¶
type TagLink struct { Id uint64 `gorm:"column:id;primaryKey;type:BIGINT UNSIGNED;not null;autoIncrement" json:"id" form:"id"` TagId uint `gorm:"column:tag_id;type:INT UNSIGNED;comment:标签ID;index:tag_id" json:"tag_id" form:"tag_id"` //标签编号 TargetId uint `gorm:"column:target_id;type:INT UNSIGNED;comment:连接对象ID;index:target_id" json:"target_id" form:"target_id"` //链接对象表主键编号 TargetName uint `` //链接对象表名称,KeyValue值 /* 128-byte string literal not displayed */ CreatedAt string `gorm:"column:created_at;type:DATETIME;comment:添加时间" json:"created_at" form:"created_at"` //添加时间 }
标签关联表
Click to show internal directories.
Click to hide internal directories.