Setting.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | 商城系统 [ 致力于通过产品和服务,帮助商家高效化开拓市场 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2017~2021 https://www.thinkphp.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed 这不是一个自由软件,不允许对程序代码以任何形式任何目的的再发行
  8. // +----------------------------------------------------------------------
  9. // | Author: thinkphp <admin@yiovo.com>
  10. // +----------------------------------------------------------------------
  11. declare (strict_types=1);
  12. namespace app\common\enum;
  13. /**
  14. * 商城设置枚举类
  15. * Class Setting
  16. * @package app\common\enum
  17. */
  18. class Setting extends EnumBasics
  19. {
  20. // 配送设置
  21. const DELIVERY = 'delivery';
  22. // 交易设置
  23. const TRADE = 'trade';
  24. // 短信通知
  25. const SMS = 'sms';
  26. // 上传设置
  27. const STORAGE = 'storage';
  28. // 满额包邮设置
  29. const FULL_FREE = 'full_free';
  30. // 账户注册设置
  31. const REGISTER = 'register';
  32. // 充值设置
  33. const RECHARGE = 'recharge';
  34. // 支付设置
  35. const PAYMENT = 'payment';
  36. // 积分设置
  37. const POINTS = 'points';
  38. // 平台设置
  39. const PLATFORM = 'platform';
  40. // 分类页模板
  41. const PAGE_CATEGORY_TEMPLATE = 'page_category_template';
  42. /**
  43. * 获取订单类型值
  44. * @return array
  45. */
  46. public static function data(): array
  47. {
  48. return [
  49. self::DELIVERY => [
  50. 'value' => self::DELIVERY,
  51. 'describe' => '配送设置',
  52. ],
  53. self::TRADE => [
  54. 'value' => self::TRADE,
  55. 'describe' => '交易设置',
  56. ],
  57. self::SMS => [
  58. 'value' => self::SMS,
  59. 'describe' => '短信通知',
  60. ],
  61. self::STORAGE => [
  62. 'value' => self::STORAGE,
  63. 'describe' => '上传设置',
  64. ],
  65. self::FULL_FREE => [
  66. 'value' => self::FULL_FREE,
  67. 'describe' => '满额包邮设置',
  68. ],
  69. self::REGISTER => [
  70. 'value' => self::REGISTER,
  71. 'describe' => '账户注册设置',
  72. ],
  73. self::RECHARGE => [
  74. 'value' => self::RECHARGE,
  75. 'describe' => '充值设置',
  76. ],
  77. self::PAYMENT => [
  78. 'value' => self::PAYMENT,
  79. 'describe' => '支付设置',
  80. ],
  81. self::POINTS => [
  82. 'value' => self::POINTS,
  83. 'describe' => '积分设置',
  84. ],
  85. self::PLATFORM => [
  86. 'value' => self::PLATFORM,
  87. 'describe' => '平台设置',
  88. ],
  89. self::PAGE_CATEGORY_TEMPLATE => [
  90. 'value' => self::PAGE_CATEGORY_TEMPLATE,
  91. 'describe' => '分类页模板',
  92. ],
  93. ];
  94. }
  95. }