Commit 098c6fc3 by keith

remove message输出消息

parent faec1e86
Showing with 2 additions and 2 deletions
......@@ -152,9 +152,9 @@ func (c *MessageController) Remove() {
_, err := o.Raw("UPDATE message SET `delete` = 1 WHERE from_account = ? AND to_account = ? AND `key` = ?", removeRequestData.FromAccount, removeRequestData.ToAccount, removeRequestData.Key).Exec()
if err != nil{
utils.ResponseError(c.Ctx, "删除失败!", &err)
c.Data["json"] = utils.ResponseError(c.Ctx, "删除失败!", &err)
}else{
utils.ResponseSuccess(c.Ctx, "删除成功", nil)
c.Data["json"] = utils.ResponseSuccess(c.Ctx, "删除成功", nil)
}
c.ServeJSON()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment