encounter Model add tags
This commit is contained in:
parent
61475e842e
commit
153c6b69a6
@ -24,7 +24,8 @@ type Encounter struct { // Encounter 或者称为 post,指的就是 Human 单
|
||||
Title string `gorm:"size:20;column:title" json:"title"`
|
||||
Content string `json:"content"`
|
||||
Level uint8 `json:"level" gorm:"column:level;default:1"`
|
||||
// Time 从 CreatedAt 中解析
|
||||
Tags string `json:"tags,omitempty" gorm:"column:tags;size:50"`
|
||||
TagsSlice []string `gorm:"-" json:"tags_list,omitempty"`
|
||||
|
||||
// TAG Avatar 最好是压缩后的备份图像
|
||||
Avatar string `gorm:"type:varchar(50)" json:"avatar,omitempty"` // 缩略图 url,为 Go 获取 Photo 之后压缩处理后的图像,单独存储。
|
||||
|
Loading…
x
Reference in New Issue
Block a user