chore: mongodb unit test

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

No files matched your search

+1 -1
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"` // 是否是草稿