Setting.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | 萤火商城系统 [ 致力于通过产品和服务,帮助商家高效化开拓市场 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2017~2021 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 FULL_FREE = 'full_free';
  30. // 账户注册设置
  31. const REGISTER = 'register';
  32. // 充值设置
  33. const RECHARGE = 'recharge';
  34. // 积分设置
  35. const POINTS = 'points';
  36. // 分类页模板
  37. const PAGE_CATEGORY_TEMPLATE = 'page_category_template';
  38. /**
  39. * 获取订单类型值
  40. * @return array
  41. */
  42. public static function data(): array
  43. {
  44. return [
  45. self::DELIVERY => [
  46. 'value' => self::DELIVERY,
  47. 'describe' => '配送设置',
  48. ],
  49. self::TRADE => [
  50. 'value' => self::TRADE,
  51. 'describe' => '交易设置',
  52. ],
  53. self::SMS => [
  54. 'value' => self::SMS,
  55. 'describe' => '短信通知',
  56. ],
  57. self::STORAGE => [
  58. 'value' => self::STORAGE,
  59. 'describe' => '上传设置',
  60. ],
  61. self::FULL_FREE => [
  62. 'value' => self::FULL_FREE,
  63. 'describe' => '满额包邮设置',
  64. ],
  65. self::REGISTER => [
  66. 'value' => self::REGISTER,
  67. 'describe' => '账户注册设置',
  68. ],
  69. self::RECHARGE => [
  70. 'value' => self::RECHARGE,
  71. 'describe' => '充值设置',
  72. ],
  73. self::POINTS => [
  74. 'value' => self::POINTS,
  75. 'describe' => '积分设置',
  76. ],
  77. self::PAGE_CATEGORY_TEMPLATE => [
  78. 'value' => self::PAGE_CATEGORY_TEMPLATE,
  79. 'describe' => '分类页模板',
  80. ],
  81. ];
  82. }
  83. }