Commit be6cd3fb by xuzhenhao

完善了检查昵称是否重复接口的返回

1 parent 8d3be031
Showing with 3 additions and 2 deletions
......@@ -69,9 +69,10 @@ func CheckUserNameRepeat(userName string) (result interface{}, err error) {
return "104001", err
}
if len(r) == 0 {
return false, nil
return nil, nil
}
return true, nil
err = errors.New("该名称已被使用")
return "105001", err
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!