Fixed Article's "Content" field type

This commit is contained in:
Florian Sylvain
2022-12-27 19:54:46 +01:00
parent 6593f38eb5
commit 39afc0c066
+2 -1
View File
@@ -1,13 +1,14 @@
package internal package internal
import ( import (
"github.com/gin-gonic/gin"
"go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson"
) )
type Article struct { type Article struct {
IdName string `json:"id_name" bson:"id_name"` IdName string `json:"id_name" bson:"id_name"`
Date int64 `json:"date" bson:"date"` Date int64 `json:"date" bson:"date"`
Content interface{} `json:"content" bson:"content"` Content gin.H `json:"content" bson:"content"`
} }
var articlesLocation = Location{Database: "gohcms", Collection: "articles"} var articlesLocation = Location{Database: "gohcms", Collection: "articles"}