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

Method DelAds

controllers/ManagerController.go:858–866  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

856}
857
858func (this *ManagerController) DelAds() {
859 id, _ := this.GetInt("id")
860 _, err := orm.NewOrm().QueryTable(models.NewAdsCont()).Filter("id", id).Delete()
861 if err != nil {
862 this.JsonResult(1, err.Error())
863 }
864 go models.UpdateAdsCache()
865 this.JsonResult(0, "删除成功")
866}
867
868// 广告管理
869func (this *ManagerController) Ads() {

Callers

nothing calls this directly

Calls 4

NewAdsContFunction · 0.92
UpdateAdsCacheFunction · 0.92
JsonResultMethod · 0.80
DeleteMethod · 0.45

Tested by

no test coverage detected