From 39afc0c066986b34c5286ee278137ff746777054 Mon Sep 17 00:00:00 2001 From: Florian Sylvain Date: Tue, 27 Dec 2022 19:54:46 +0100 Subject: [PATCH] Fixed Article's "Content" field type --- internal/articlesBusiness.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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"}