Setting.php 2.1 KB

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