更新友链
()
| 1047 | |
| 1048 | // 更新友链 |
| 1049 | func (this *ManagerController) UpdateFriendlink() { |
| 1050 | id, _ := this.GetInt("id") |
| 1051 | if err := new(models.FriendLink).Update(id, this.GetString("field"), this.GetString("value")); err != nil { |
| 1052 | this.JsonResult(1, "操作失败:"+err.Error()) |
| 1053 | } |
| 1054 | this.JsonResult(0, "操作成功") |
| 1055 | } |
| 1056 | |
| 1057 | // 删除友链 |
| 1058 | func (this *ManagerController) DelFriendlink() { |
nothing calls this directly
no test coverage detected