Added online field to Articles

This commit is contained in:
Florian Sylvain
2022-12-30 03:06:25 +01:00
parent 7107e4e867
commit 3d43042245
3 changed files with 6 additions and 0 deletions
+1
View File
@@ -11,6 +11,7 @@ type Article struct {
Date int64 `json:"date" bson:"date"`
Content gin.H `json:"content" bson:"content"`
PageID string `json:"page_id" bson:"page_id"`
Online bool `json:"online" bson:"online"`
}
var articlesLocation = database.Location{Database: "gohcms", Collection: "articles"}