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

Method DeleteVersion

controllers/ManagerController.go:1197–1206  ·  view source on GitHub ↗

Versions 版本管理

()

Source from the content-addressed store, hash-verified

1195
1196// Versions 版本管理
1197func (this *ManagerController) DeleteVersion() {
1198 id, _ := this.GetInt("id")
1199 if id > 0 {
1200 err := models.NewVersion().Delete(id)
1201 if err != nil {
1202 this.JsonResult(1, err.Error())
1203 }
1204 }
1205 this.JsonResult(0, "删除成功")
1206}
1207
1208// Versions 版本管理
1209func (this *ManagerController) UpdateVersion() {

Callers

nothing calls this directly

Calls 3

NewVersionFunction · 0.92
JsonResultMethod · 0.80
DeleteMethod · 0.45

Tested by

no test coverage detected