This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/common/enum/Setting.php
2020-04-25 22:20:29 +08:00

85 lines
1.9 KiB
PHP

<?php
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' => '积分设置',
],
];
}
}