()
| 79 | } |
| 80 | |
| 81 | func (this *LoginedController) DeleteBookmarks() { |
| 82 | docId, _ := this.GetInt("doc_id") |
| 83 | if docId <= 0 { |
| 84 | this.Response(http.StatusBadRequest, messageBadRequest) |
| 85 | } |
| 86 | bm := models.NewBookmark() |
| 87 | if bm.Exist(this.isLogin(), docId) { |
| 88 | bm.InsertOrDelete(this.isLogin(), docId) |
| 89 | } |
| 90 | this.Response(http.StatusOK, messageSuccess) |
| 91 | } |
| 92 | |
| 93 | // 更换头像 |
| 94 | func (this *LoginedController) ChangeAvatar() { |
nothing calls this directly
no test coverage detected