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

Method DelFriendlink

controllers/ManagerController.go:1058–1064  ·  view source on GitHub ↗

删除友链

()

Source from the content-addressed store, hash-verified

1056
1057// 删除友链
1058func (this *ManagerController) DelFriendlink() {
1059 id, _ := this.GetInt("id")
1060 if err := new(models.FriendLink).Del(id); err != nil {
1061 this.JsonResult(1, "删除失败:"+err.Error())
1062 }
1063 this.JsonResult(0, "删除成功")
1064}
1065
1066// 重建全量索引
1067func (this *ManagerController) RebuildAllIndex() {

Callers

nothing calls this directly

Calls 2

JsonResultMethod · 0.80
DelMethod · 0.45

Tested by

no test coverage detected