MCPcopy Index your code
hub / github.com/TruthHun/BookStack / DeleteBookmarks

Method DeleteBookmarks

controllers/api/LoginedController.go:81–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79}
80
81func (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// 更换头像
94func (this *LoginedController) ChangeAvatar() {

Callers

nothing calls this directly

Calls 5

ExistMethod · 0.95
InsertOrDeleteMethod · 0.95
NewBookmarkFunction · 0.92
ResponseMethod · 0.80
isLoginMethod · 0.80

Tested by

no test coverage detected