Message.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * @Name
  4. * @Description
  5. * @Author 刘学玺
  6. * @Date 2023/11/24 10:42
  7. */
  8. namespace App\Exceptions;
  9. class Message
  10. {
  11. const BAD_REQUEST = '服务端异常!';
  12. const INTERNAL_SERVER_ERROR = '服务器错误!';
  13. const Ok = '操作成功!';
  14. const PARES_ERROR = '服务器语法错误!';
  15. const Error = '服务器语法错误,请注意查看信息!';
  16. const REFLECTION_EXCEPTION = '服务器异常映射!';
  17. const RUNTIME_EXCEPTION = '服务器运行时错误!';
  18. const ERROR_EXCEPTION = '服务器框架运行出错!';
  19. const INVALID_ARGUMENT_EXCEPTION = '数据库链接问题!';
  20. const MODEL_NOT_FOUND_EXCEPTION = '数据模型错误!';
  21. const QUERY_EXCEPTION = '数据库DB错误!';
  22. const COMMON_EXCEPTION = '网络错误!';
  23. const API_ERROR_EXCEPTION = '操作失败!';
  24. const ADD_API_ERROR = '添加失败!';
  25. const ADD_API_SUCCESS = '添加成功!';
  26. const UPDATE_API_ERROR = '修改失败!';
  27. const UPDATE_API_SUCCESS = '修改成功!';
  28. const STATUS_API_ERROR = '调整失败!';
  29. const STATUS_API_SUCCESS = '调整成功!';
  30. const DELETE_API_ERROR = '删除失败!';
  31. const DELETE_API_SUCCESS = '删除成功!';
  32. const DELETE_RECYCLE_API_ERROR = '恢复失败!';
  33. const DELETE_RECYCLE_API_SUCCESS = '恢复成功!';
  34. const TOKEN_ERROR_KEY = 'apikey错误!'; // 70001
  35. const TOKEN_ERROR_SET = '请先登录!'; // 50012
  36. const TOKEN_ERROR_BLACK = 'token 非法!'; // 50008
  37. const TOKEN_ERROR_EXPIRED = 'token 过期!'; // 50014
  38. const TOKEN_ERROR_JWT = '请先登录!'; // 50012
  39. const TOKEN_ERROR_JTB = '请先登录!'; // 50012
  40. }