添加友链
()
| 1039 | |
| 1040 | // 添加友链 |
| 1041 | func (this *ManagerController) AddFriendlink() { |
| 1042 | if err := new(models.FriendLink).Add(this.GetString("title"), this.GetString("link")); err != nil { |
| 1043 | this.JsonResult(1, "新增友链失败:"+err.Error()) |
| 1044 | } |
| 1045 | this.JsonResult(0, "新增友链成功") |
| 1046 | } |
| 1047 | |
| 1048 | // 更新友链 |
| 1049 | func (this *ManagerController) UpdateFriendlink() { |
nothing calls this directly
no test coverage detected