errMsg.go 1.1 KB

1234567891011121314151617181920212223242526
  1. package errmsg
  2. const (
  3. ParamInvalid = "请求参数无效"
  4. FindSuccess = "查询成功"
  5. UserAlreadyExists = "用户已存在"
  6. UserRegisterSuccess = "用户注册成功"
  7. UserRegisterFailed = "用户注册失败"
  8. UserLoginSuccess = "登录成功"
  9. UserNotExists = "用户不存在"
  10. UserPasswordResetError = "用户密码重置失败"
  11. UserPasswordResetSuccess = "用户密码重置成功"
  12. UserPasswordChangeSuccess = "用户密码修改成功"
  13. UserPasswordChangeError = "用户密码修改失败"
  14. UserOldPasswordError = "用户原密码错误"
  15. FileExtendNameError = "文件类型不符"
  16. FileUploadError = "文件上传失败"
  17. JSONParseError = "JSON 转换异常"
  18. SendMessageError = "消息发送失败"
  19. SocketCloseError = "Socket关闭异常:"
  20. RecordSaveError = "记录保存失败"
  21. RecordSaveSuccess = "记录保存成功"
  22. RecordNotFoundError = "未找到记录"
  23. TestResultFailed = "测试失败,失败原因:"
  24. TestResultSuccess = "测试完成,测试结果:"
  25. )