修复未公开文章入库变成公开
parent
3909f2052c
commit
73421d20fd
|
@ -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() {
|
||||
|
|
|
@ -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) {
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue