| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <?php
- /**
- *
- * @copyright ©2020 点小铺
- * @author hanj
- * @link: https://dyuit.com
- * Created by VSCode
- */
- namespace app\common\enum;
- /**
- * 商城设置枚举类
- * Class Setting
- * @package app\common\enum
- */
- class Setting extends EnumBasics
- {
- // 商城设置
- const STORE = 'store';
- // 交易设置
- const TRADE = 'trade';
- // 短信通知
- const SMS = 'sms';
- // 模板消息
- const TPL_MSG = 'tplMsg';
- // 上传设置
- const STORAGE = 'storage';
- // 小票打印
- const PRINTER = 'printer';
- // 满额包邮设置
- const FULL_FREE = 'full_free';
- // 充值设置
- const RECHARGE = 'recharge';
- // 积分设置
- const POINTS = 'points';
- /**
- * 获取订单类型值
- * @return array
- */
- public static function data()
- {
- return [
- self::STORE => [
- 'value' => self::STORE,
- 'describe' => '商城设置',
- ],
- self::TRADE => [
- 'value' => self::TRADE,
- 'describe' => '交易设置',
- ],
- self::SMS => [
- 'value' => self::SMS,
- 'describe' => '短信通知',
- ],
- self::TPL_MSG => [
- 'value' => self::TPL_MSG,
- 'describe' => '模板消息',
- ],
- self::STORAGE => [
- 'value' => self::STORAGE,
- 'describe' => '上传设置',
- ],
- self::PRINTER => [
- 'value' => self::PRINTER,
- 'describe' => '小票打印',
- ],
- self::FULL_FREE => [
- 'value' => self::FULL_FREE,
- 'describe' => '满额包邮设置',
- ],
- self::RECHARGE => [
- 'value' => self::RECHARGE,
- 'describe' => '充值设置',
- ],
- self::POINTS => [
- 'value' => self::POINTS,
- 'describe' => '积分设置',
- ],
- ];
- }
- }
|