encounter Model add tags

This commit is contained in:
Havoc412 2024-10-23 19:57:37 +08:00
parent 61475e842e
commit 153c6b69a6

View File

@ -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 之后压缩处理后的图像,单独存储。