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

Method DeleteBanner

controllers/ManagerController.go:1079–1088  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1077}
1078
1079func (this *ManagerController) DeleteBanner() {
1080 id, _ := this.GetInt("id")
1081 if id > 0 {
1082 err := models.NewBanner().Delete(id)
1083 if err != nil {
1084 this.JsonResult(1, err.Error())
1085 }
1086 }
1087 this.JsonResult(0, "删除成功")
1088}
1089
1090func (this *ManagerController) UpdateBanner() {
1091 id, _ := this.GetInt("id")

Callers

nothing calls this directly

Calls 3

NewBannerFunction · 0.92
JsonResultMethod · 0.80
DeleteMethod · 0.45

Tested by

no test coverage detected