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

Method DelCate

controllers/ManagerController.go:981–990  ·  view source on GitHub ↗

删除分类

()

Source from the content-addressed store, hash-verified

979
980// 删除分类
981func (this *ManagerController) DelCate() {
982 var err error
983 if id, _ := this.GetInt("id"); id > 0 {
984 err = new(models.Category).Del(id)
985 }
986 if err != nil {
987 this.JsonResult(1, err.Error())
988 }
989 this.JsonResult(0, "删除成功")
990}
991
992// 更新分类的图标
993func (this *ManagerController) UpdateCateIcon() {

Callers

nothing calls this directly

Calls 2

JsonResultMethod · 0.80
DelMethod · 0.45

Tested by

no test coverage detected