Finish the MKCOL method.

This commit is contained in:
zicla
2019-04-23 01:19:08 +08:00
parent 99710eb670
commit 27d6234409
2 changed files with 62 additions and 26 deletions

View File

@ -305,9 +305,12 @@ func (this *MatterDao) findByUserUuidAndPath(userUuid string, path string) *Matt
//根据userUuid和path来查找
func (this *MatterDao) checkByUserUuidAndPath(userUuid string, path string) *Matter {
matter := this.findByUserUuidAndPath(userUuid,path)
if path == "" {
this.PanicBadRequest("path 不能为空")
}
matter := this.findByUserUuidAndPath(userUuid, path)
if matter == nil {
this.PanicNotFound("%s 不存在", path)
this.PanicNotFound("path = %s 不存在", path)
}
return matter