errMsg.go 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  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. SocketCloseError = "Socket关闭异常:"
  19. DeviceConnectSuccess = "设备连接成功"
  20. WriteDataSuccess = "写入数据成功"
  21. DeviceConnectError = "设备连接失败"
  22. OpenChannelError = "打开设备通道失败"
  23. SetDeviceTimeFailed = "授时指令发送失败"
  24. BindUserFailed = "绑定用户指令发送失败"
  25. StartCollocateFailed = "开始收集指令发送失败"
  26. StartTransFailed = "开始传送指令发送失败"
  27. QuestionNotFound = "问答问题不存在"
  28. QuestionCreateFailed = "创建问题失败"
  29. AnswerCreateFailed = "创建答案失败"
  30. FindAnswerFailed = "查询答案信息失败"
  31. FindCategoryFailed = "类别查询失败"
  32. DeviceAddFailed = "新增设备信息失败"
  33. DeviceAddSuccess = "新增设备信息成功"
  34. )