diff --git a/internal/articlesBusiness.go b/internal/articlesBusiness.go index 0b2b6f5..4366153 100644 --- a/internal/articlesBusiness.go +++ b/internal/articlesBusiness.go @@ -1,13 +1,14 @@ package internal import ( + "github.com/gin-gonic/gin" "go.mongodb.org/mongo-driver/bson" ) type Article struct { - IdName string `json:"id_name" bson:"id_name"` - Date int64 `json:"date" bson:"date"` - Content interface{} `json:"content" bson:"content"` + IdName string `json:"id_name" bson:"id_name"` + Date int64 `json:"date" bson:"date"` + Content gin.H `json:"content" bson:"content"` } var articlesLocation = Location{Database: "gohcms", Collection: "articles"}