校验文档是否已经存在
()
| 124 | |
| 125 | //校验文档是否已经存在 |
| 126 | func (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 |
| 134 | func (this *BaseController) ResponseJson(isSuccess bool, msg string, data ...interface{}) { |
nothing calls this directly
no test coverage detected