AddonsChanjetRequestEnum.php 561 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace common\enums;
  3. /**
  4. * 畅捷通请求表请求状态
  5. */
  6. class AddonsChanjetRequestEnum extends BaseEnum
  7. {
  8. /**
  9. * 未请求
  10. */
  11. const NOT_REQUESTED = 0;
  12. /**
  13. * 请求成功
  14. */
  15. const REQUEST_SUCCESS = 1;
  16. /**
  17. * 请求失败
  18. */
  19. const REQUEST_ERROR = 2;
  20. public static function getMap(): array
  21. {
  22. return [
  23. self::NOT_REQUESTED => '未推送',
  24. self::REQUEST_SUCCESS => '推送成功',
  25. self::REQUEST_ERROR => '请求失败',
  26. ];
  27. }
  28. }