errMsg.go 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package err
  2. const (
  3. ParamInvalid = "请求参数无效"
  4. FindSuccess = "查询成功"
  5. CreateSuccess = "创建成功"
  6. UserAlreadyExists = "用户已存在"
  7. UserRegisterSuccess = "用户注册成功"
  8. UserRegisterFailed = "用户注册失败"
  9. UserLoginSuccess = "登录成功"
  10. UserLoginFailed = "用户名或密码错误"
  11. UserNotExists = "用户不存在"
  12. UserPasswordResetError = "用户密码重置失败"
  13. UserPasswordResetSuccess = "用户密码重置成功"
  14. UserPasswordChangeSuccess = "用户密码修改成功"
  15. UserPasswordChangeError = "用户密码修改失败"
  16. UserOldPasswordError = "用户原密码错误"
  17. SendMessageError = "消息发送失败"
  18. SocketInitError = "Socket开启异常"
  19. SocketCloseError = "Socket关闭异常:"
  20. DeviceConnectSuccess = "设备连接成功"
  21. WriteDataSuccess = "写入数据成功"
  22. DeviceConnectError = "设备连接失败"
  23. OpenChannelError = "打开设备通道失败"
  24. SetDeviceTimeFailed = "授时指令发送失败"
  25. BindUserFailed = "绑定用户指令发送失败"
  26. StartCollocateFailed = "开始收集指令发送失败"
  27. StartTransFailed = "开始传送指令发送失败"
  28. QuestionNotFound = "问答问题不存在"
  29. QuestionCreateFailed = "创建问题失败"
  30. AnswerCreateFailed = "创建答案失败"
  31. FindAnswerFailed = "查询答案信息失败"
  32. DeviceAddFailed = "新增设备信息失败:设备已存在"
  33. DeviceAddSuccess = "新增设备信息成功"
  34. DeviceRemoveFailed = "设备移除失败"
  35. DeviceRemoveSuccess = "设备移除成功"
  36. )