MCPcopy Index your code
hub / github.com/TruthHun/DocHub / DocExist

Method DocExist

controllers/HomeControllers/BaseController.go:126–131  ·  view source on GitHub ↗

校验文档是否已经存在

()

Source from the content-addressed store, hash-verified

124
125//校验文档是否已经存在
126func (this *BaseController) DocExist() {
127 if models.NewDocument().IsExistByMd5(this.GetString("md5")) > 0 {
128 this.ResponseJson(true, "文档存在")
129 }
130 this.ResponseJson(false, "文档不存在")
131}
132
133//响应json
134func (this *BaseController) ResponseJson(isSuccess bool, msg string, data ...interface{}) {

Callers

nothing calls this directly

Calls 2

ResponseJsonMethod · 0.95
IsExistByMd5Method · 0.80

Tested by

no test coverage detected