ApplyStatus.php 903 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace app\common\enum\dealer;
  3. use app\common\enum\EnumBasics;
  4. /**
  5. * 枚举类:分销商入驻审核状态
  6. * Class ApplyStatus
  7. * @package app\common\enum\dealer
  8. */
  9. class ApplyStatus extends EnumBasics
  10. {
  11. // 待审核
  12. const AUDIT_WAIT = 10;
  13. // 审核通过
  14. const AUDIT_PASS = 20;
  15. // 驳回
  16. const AUDIT_REJECT = 30;
  17. /**
  18. * 获取枚举类型值
  19. * @return array
  20. */
  21. public static function data()
  22. {
  23. return [
  24. self::AUDIT_WAIT => [
  25. 'name' => '待审核',
  26. 'value' => self::AUDIT_WAIT,
  27. ],
  28. self::AUDIT_PASS => [
  29. 'name' => '审核通过',
  30. 'value' => self::AUDIT_PASS,
  31. ],
  32. self::AUDIT_REJECT => [
  33. 'name' => '驳回',
  34. 'value' => self::AUDIT_REJECT,
  35. ],
  36. ];
  37. }
  38. }