chore: mongodb unit test

This commit is contained in:
deepzz0
2021-04-27 10:21:27 +08:00
parent e2df642a46
commit bb40570053
5 changed files with 372 additions and 133 deletions

View File

@@ -11,7 +11,7 @@ type Article struct {
Title string `gorm:"not null"` // 标题
Count int `gorm:"not null"` // 评论数量
Content string `gorm:"not null"` // markdown内容
SerieID int32 `gorm:"not null"` // 专题ID
SerieID int `gorm:"not null"` // 专题ID
Tags string `gorm:"not null"` // tag,以逗号隔开
IsDraft bool `gorm:"not null"` // 是否是草稿