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

92 lines
2.1 KiB
PHP
Raw Normal View History

2020-04-25 22:20:29 +08:00
<?php
namespace app\common\enum;
/**
* 商城设置枚举类
* Class Setting
* @package app\common\enum
*/
class Setting extends EnumBasics
{
// 商城设置
const STORE = 'store';
// 交易设置
const TRADE = 'trade';
// 短信通知
const SMS = 'sms';
2020-04-25 22:53:20 +08:00
// // 模板消息
// const TPL_MSG = 'tplMsg';
2020-04-25 22:20:29 +08:00
// 上传设置
const STORAGE = 'storage';
// 小票打印
const PRINTER = 'printer';
// 满额包邮设置
const FULL_FREE = 'full_free';
// 充值设置
const RECHARGE = 'recharge';
// 积分设置
const POINTS = 'points';
2020-04-25 22:53:20 +08:00
// 订阅消息设置
const SUBMSG = 'submsg';
2020-04-25 22:20:29 +08:00
/**
* 获取订单类型值
* @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' => '短信通知',
],
2020-04-25 22:53:20 +08:00
// self::TPL_MSG => [
// 'value' => self::TPL_MSG,
// 'describe' => '模板消息',
// ],
2020-04-25 22:20:29 +08:00
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' => '积分设置',
],
2020-04-25 22:53:20 +08:00
self::SUBMSG => [
'value' => self::SUBMSG,
'describe' => '小程序订阅消息',
],
2020-04-25 22:20:29 +08:00
];
}
}