diff --git a/controller/blog.go b/controller/blog.go index 2ee2e03..11f7e2a 100644 --- a/controller/blog.go +++ b/controller/blog.go @@ -176,7 +176,7 @@ func AddArticle(c *gin.Context) { Content string `json:"content"` author string `json:"author"` Type int64 `json:"type"` - Ispublic int `json:"ispublic"` + Ispublic int `json:"is_public"` } var req ReqAddArticle defer func() { diff --git a/controller/file.go b/controller/file.go index b924442..7e1ddf5 100644 --- a/controller/file.go +++ b/controller/file.go @@ -73,6 +73,7 @@ func (this *FileController) OnUpload(c *gin.Context) { c.JSON(200, map[string] interface{}{"url":uid.String() + ".gif" } ) } } + func (this *FileController) FileList(c *gin.Context) { }