Setting.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 RECHARGE = 'recharge';
  32. // 积分设置
  33. const POINTS = 'points';
  34. // 分类页模板
  35. const PAGE_CATEGORY_TEMPLATE = 'page_category_template';
  36. /**
  37. * 获取订单类型值
  38. * @return array
  39. */
  40. public static function data()
  41. {
  42. return [
  43. self::DELIVERY => [
  44. 'value' => self::DELIVERY,
  45. 'describe' => '配送设置',
  46. ],
  47. self::TRADE => [
  48. 'value' => self::TRADE,
  49. 'describe' => '交易设置',
  50. ],
  51. self::SMS => [
  52. 'value' => self::SMS,
  53. 'describe' => '短信通知',
  54. ],
  55. self::STORAGE => [
  56. 'value' => self::STORAGE,
  57. 'describe' => '上传设置',
  58. ],
  59. self::FULL_FREE => [
  60. 'value' => self::FULL_FREE,
  61. 'describe' => '满额包邮设置',
  62. ],
  63. self::RECHARGE => [
  64. 'value' => self::RECHARGE,
  65. 'describe' => '充值设置',
  66. ],
  67. self::POINTS => [
  68. 'value' => self::POINTS,
  69. 'describe' => '积分设置',
  70. ],
  71. self::PAGE_CATEGORY_TEMPLATE => [
  72. 'value' => self::PAGE_CATEGORY_TEMPLATE,
  73. 'describe' => '分类页模板',
  74. ],
  75. ];
  76. }
  77. }