修复未公开文章入库变成公开

master
a7458969 2020-04-28 10:46:59 +08:00
parent 3909f2052c
commit 73421d20fd
2 changed files with 2 additions and 1 deletions

View File

@ -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() {

View File

@ -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) {
}