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

Method AddFriendlink

controllers/ManagerController.go:1041–1046  ·  view source on GitHub ↗

添加友链

()

Source from the content-addressed store, hash-verified

1039
1040// 添加友链
1041func (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// 更新友链
1049func (this *ManagerController) UpdateFriendlink() {

Callers

nothing calls this directly

Calls 2

JsonResultMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected