fix post page

This commit is contained in:
deepzz0
2016-10-19 22:16:58 +08:00
parent 2f52a53ff3
commit 773378682b
5 changed files with 21 additions and 29 deletions

6
api.go
View File

@@ -46,6 +46,8 @@ func init() {
APIs["trash-delete"] = apiTrashDelete
// 恢复回收箱
APIs["trash-recover"] = apiTrashRecover
// 上传文件
APIs["file-upload"] = apiFileUpload
}
func apiAccount(c *gin.Context) {
@@ -389,6 +391,10 @@ func apiTrashRecover(c *gin.Context) {
responseNotice(c, NOTICE_SUCCESS, "恢复成功", "")
}
func apiFileUpload(c *gin.Context) {
}
func responseNotice(c *gin.Context, typ, content, hl string) {
if hl != "" {
c.SetCookie("notice_highlight", hl, 86400, "/", "", true, false)