From 73421d20fd7b80aebcb15a74b67093de4994fa00 Mon Sep 17 00:00:00 2001 From: a7458969 <290198252@qq.com> Date: Tue, 28 Apr 2020 10:46:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E5=85=AC=E5=BC=80?= =?UTF-8?q?=E6=96=87=E7=AB=A0=E5=85=A5=E5=BA=93=E5=8F=98=E6=88=90=E5=85=AC?= =?UTF-8?q?=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/blog.go | 2 +- controller/file.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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) { }