LiveStatus.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. *
  4. * @copyright ©2020 点小铺
  5. * @author hanj
  6. * @link: https://dyuit.com
  7. * Created by VSCode
  8. */
  9. namespace app\common\enum\live;
  10. use app\common\enum\EnumBasics;
  11. /**
  12. * 微信小程序直播间状态枚举类
  13. * Class Room
  14. * @package app\common\enum\live
  15. */
  16. class LiveStatus extends EnumBasics
  17. {
  18. /**
  19. * 获取枚举数据
  20. * @return array
  21. */
  22. public static function data()
  23. {
  24. return [
  25. 101 => [
  26. 'name' => '直播中',
  27. 'value' => 101,
  28. ],
  29. 102 => [
  30. 'name' => '未开始',
  31. 'value' => 102,
  32. ],
  33. 103 => [
  34. 'name' => '已结束',
  35. 'value' => 103,
  36. ],
  37. 104 => [
  38. 'name' => '禁播',
  39. 'value' => 104,
  40. ],
  41. 105 => [
  42. 'name' => '暂停中',
  43. 'value' => 105,
  44. ],
  45. 106 => [
  46. 'name' => '异常',
  47. 'value' => 106,
  48. ],
  49. 107 => [
  50. 'name' => '已过期',
  51. 'value' => 107,
  52. ],
  53. ];
  54. }
  55. }