errMsg.go 1.2 KB

123456789101112131415161718192021222324252627
  1. package err
  2. const (
  3. ParamInvalid = "请求参数无效"
  4. FindSuccess = "查询成功"
  5. UserAlreadyExists = "用户已存在"
  6. UserRegisterSuccess = "用户注册成功"
  7. UserRegisterFailed = "用户注册失败"
  8. UserLoginSuccess = "登录成功"
  9. UserLoginFailed = "用户名或密码错误"
  10. UserNotExists = "用户不存在"
  11. UserPasswordResetError = "用户密码重置失败"
  12. UserPasswordResetSuccess = "用户密码重置成功"
  13. UserPasswordChangeSuccess = "用户密码修改成功"
  14. UserPasswordChangeError = "用户密码修改失败"
  15. UserOldPasswordError = "用户原密码错误"
  16. SendMessageError = "消息发送失败"
  17. SocketCloseError = "Socket关闭异常:"
  18. DeviceConnectSuccess = "设备连接成功"
  19. WriteDataSuccess = "写入数据成功"
  20. DeviceConnectError = "设备连接失败"
  21. OpenChannelError = "打开设备通道失败"
  22. SetDeviceTimeFailed = "授时指令发送失败"
  23. BindUserFailed = "绑定用户指令发送失败"
  24. StartCollocateFailed = "开始收集指令发送失败"
  25. StartTransFailed = "开始传送指令发送失败"
  26. )