Setting.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. namespace app\common\enum;
  3. /**
  4. * 商城设置枚举类
  5. * Class Setting
  6. * @package app\common\enum
  7. */
  8. class Setting extends EnumBasics
  9. {
  10. // 商城设置
  11. const STORE = 'store';
  12. // 交易设置
  13. const TRADE = 'trade';
  14. // 短信通知
  15. const SMS = 'sms';
  16. // 模板消息
  17. const TPL_MSG = 'tplMsg';
  18. // 上传设置
  19. const STORAGE = 'storage';
  20. // 小票打印
  21. const PRINTER = 'printer';
  22. // 满额包邮设置
  23. const FULL_FREE = 'full_free';
  24. // 充值设置
  25. const RECHARGE = 'recharge';
  26. // 积分设置
  27. const POINTS = 'points';
  28. /**
  29. * 获取订单类型值
  30. * @return array
  31. */
  32. public static function data()
  33. {
  34. return [
  35. self::STORE => [
  36. 'value' => self::STORE,
  37. 'describe' => '商城设置',
  38. ],
  39. self::TRADE => [
  40. 'value' => self::TRADE,
  41. 'describe' => '交易设置',
  42. ],
  43. self::SMS => [
  44. 'value' => self::SMS,
  45. 'describe' => '短信通知',
  46. ],
  47. self::TPL_MSG => [
  48. 'value' => self::TPL_MSG,
  49. 'describe' => '模板消息',
  50. ],
  51. self::STORAGE => [
  52. 'value' => self::STORAGE,
  53. 'describe' => '上传设置',
  54. ],
  55. self::PRINTER => [
  56. 'value' => self::PRINTER,
  57. 'describe' => '小票打印',
  58. ],
  59. self::FULL_FREE => [
  60. 'value' => self::FULL_FREE,
  61. 'describe' => '满额包邮设置',
  62. ],
  63. self::RECHARGE => [
  64. 'value' => self::RECHARGE,
  65. 'describe' => '充值设置',
  66. ],
  67. self::POINTS => [
  68. 'value' => self::POINTS,
  69. 'describe' => '积分设置',
  70. ],
  71. ];
  72. }
  73. }