Setting.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | 萤火商城系统 [ 致力于通过产品和服务,帮助商家高效化开拓市场 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2017~2024 https://www.yiovo.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed 这不是一个自由软件,不允许对程序代码以任何形式任何目的的再发行
  8. // +----------------------------------------------------------------------
  9. // | Author: 萤火科技 <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 PRINTER = 'printer';
  30. // 满额包邮设置
  31. const FULL_FREE = 'full_free';
  32. // 账户注册设置
  33. const REGISTER = 'register';
  34. // 充值设置
  35. const RECHARGE = 'recharge';
  36. // 积分设置
  37. const POINTS = 'points';
  38. // 店铺页面风格设置
  39. const APP_THEME = 'app_theme';
  40. // 分类页模板设置
  41. const PAGE_CATEGORY_TEMPLATE = 'page_category_template';
  42. // 商城客服设置
  43. const CUSTOMER = 'customer';
  44. /**
  45. * 获取订单类型值
  46. * @return array
  47. */
  48. public static function data(): array
  49. {
  50. return [
  51. self::DELIVERY => [
  52. 'value' => self::DELIVERY,
  53. 'describe' => '配送设置',
  54. ],
  55. self::TRADE => [
  56. 'value' => self::TRADE,
  57. 'describe' => '交易设置',
  58. ],
  59. self::SMS => [
  60. 'value' => self::SMS,
  61. 'describe' => '短信通知',
  62. ],
  63. self::STORAGE => [
  64. 'value' => self::STORAGE,
  65. 'describe' => '上传设置',
  66. ],
  67. self::PRINTER => [
  68. 'value' => self::PRINTER,
  69. 'describe' => '小票打印',
  70. ],
  71. self::FULL_FREE => [
  72. 'value' => self::FULL_FREE,
  73. 'describe' => '满额包邮设置',
  74. ],
  75. self::REGISTER => [
  76. 'value' => self::REGISTER,
  77. 'describe' => '账户注册设置',
  78. ],
  79. self::RECHARGE => [
  80. 'value' => self::RECHARGE,
  81. 'describe' => '充值设置',
  82. ],
  83. self::POINTS => [
  84. 'value' => self::POINTS,
  85. 'describe' => '积分设置',
  86. ],
  87. self::APP_THEME => [
  88. 'value' => self::APP_THEME,
  89. 'describe' => '店铺页面风格设置',
  90. ],
  91. self::PAGE_CATEGORY_TEMPLATE => [
  92. 'value' => self::PAGE_CATEGORY_TEMPLATE,
  93. 'describe' => '分类页模板设置',
  94. ],
  95. self::CUSTOMER => [
  96. 'value' => self::CUSTOMER,
  97. 'describe' => '商城客服设置',
  98. ]
  99. ];
  100. }
  101. }