()
| 67 | } |
| 68 | |
| 69 | func (this *LoginedController) SetBookmarks() { |
| 70 | docId, _ := this.GetInt("doc_id") |
| 71 | if docId <= 0 { |
| 72 | this.Response(http.StatusBadRequest, messageBadRequest) |
| 73 | } |
| 74 | bm := models.NewBookmark() |
| 75 | if !bm.Exist(this.isLogin(), docId) { |
| 76 | bm.InsertOrDelete(this.isLogin(), docId) |
| 77 | } |
| 78 | this.Response(http.StatusOK, messageSuccess) |
| 79 | } |
| 80 | |
| 81 | func (this *LoginedController) DeleteBookmarks() { |
| 82 | docId, _ := this.GetInt("doc_id") |
nothing calls this directly
no test coverage detected