Setting.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. const SUBMSG = 'submsg';
  30. /**
  31. * 获取订单类型值
  32. * @return array
  33. */
  34. public static function data()
  35. {
  36. return [
  37. self::STORE => [
  38. 'value' => self::STORE,
  39. 'describe' => '商城设置',
  40. ],
  41. self::TRADE => [
  42. 'value' => self::TRADE,
  43. 'describe' => '交易设置',
  44. ],
  45. self::SMS => [
  46. 'value' => self::SMS,
  47. 'describe' => '短信通知',
  48. ],
  49. // self::TPL_MSG => [
  50. // 'value' => self::TPL_MSG,
  51. // 'describe' => '模板消息',
  52. // ],
  53. self::STORAGE => [
  54. 'value' => self::STORAGE,
  55. 'describe' => '上传设置',
  56. ],
  57. self::PRINTER => [
  58. 'value' => self::PRINTER,
  59. 'describe' => '小票打印',
  60. ],
  61. self::FULL_FREE => [
  62. 'value' => self::FULL_FREE,
  63. 'describe' => '满额包邮设置',
  64. ],
  65. self::RECHARGE => [
  66. 'value' => self::RECHARGE,
  67. 'describe' => '充值设置',
  68. ],
  69. self::POINTS => [
  70. 'value' => self::POINTS,
  71. 'describe' => '积分设置',
  72. ],
  73. self::SUBMSG => [
  74. 'value' => self::SUBMSG,
  75. 'describe' => '小程序订阅消息',
  76. ],
  77. ];
  78. }
  79. }