1、实现文章列表、设置、编辑功能

2、实现文章附件功能
This commit is contained in:
lifei6671
2018-07-17 19:13:11 +08:00
parent 96ba414dd8
commit 86637ef581
15 changed files with 1521 additions and 425 deletions

View File

@@ -579,13 +579,13 @@ func (c *DocumentController) DownloadAttachment() {
// 删除附件
func (c *DocumentController) RemoveAttachment() {
c.Prepare()
attach_id, _ := c.GetInt("attach_id")
attachId, _ := c.GetInt("attach_id")
if attach_id <= 0 {
if attachId <= 0 {
c.JsonResult(6001, "参数错误")
}
attach, err := models.NewAttachment().Find(attach_id)
attach, err := models.NewAttachment().Find(attachId)
if err != nil {
beego.Error(err)