mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-19 01:58:00 +08:00
1、实现文章列表、设置、编辑功能
2、实现文章附件功能
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user