mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
Fixed Article's "Content" field type
This commit is contained in:
@@ -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"`
|
||||
Content gin.H `json:"content" bson:"content"`
|
||||
}
|
||||
|
||||
var articlesLocation = Location{Database: "gohcms", Collection: "articles"}
|
||||
|
||||
Reference in New Issue
Block a user