Added page_id field to Articles

This commit is contained in:
Florian Sylvain
2022-12-30 02:02:38 +01:00
parent c950e2cde1
commit 948243525e
3 changed files with 7 additions and 1 deletions
+1
View File
@@ -10,6 +10,7 @@ type Article struct {
IdName string `json:"id_name" bson:"id_name"`
Date int64 `json:"date" bson:"date"`
Content gin.H `json:"content" bson:"content"`
PageID string `json:"page_id" bson:"page_id"`
}
var articlesLocation = database.Location{Database: "gohcms", Collection: "articles"}