初始化项目
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 萤火商城系统 [ 致力于通过产品和服务,帮助商家高效化开拓市场 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2017~2023 https://www.yiovo.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed 这不是一个自由软件,不允许对程序代码以任何形式任何目的的再发行
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: 萤火科技 <admin@yiovo.com>
|
||||
// +----------------------------------------------------------------------
|
||||
declare (strict_types=1);
|
||||
|
||||
namespace app\common\enum\user\balanceLog;
|
||||
|
||||
use app\common\enum\EnumBasics;
|
||||
|
||||
/**
|
||||
* 余额变动场景枚举类
|
||||
* Class Scene
|
||||
* @package app\common\enum\user\balanceLog
|
||||
*/
|
||||
class Scene extends EnumBasics
|
||||
{
|
||||
// 用户充值
|
||||
const RECHARGE = 10;
|
||||
|
||||
// 用户消费
|
||||
const CONSUME = 20;
|
||||
|
||||
// 管理员操作
|
||||
const ADMIN = 30;
|
||||
|
||||
// 订单退款
|
||||
const REFUND = 40;
|
||||
|
||||
// 用户分销
|
||||
const SHARE = 50;
|
||||
|
||||
// 实体卡兑换
|
||||
const EXCHANGE = 60;
|
||||
|
||||
/**
|
||||
* 获取订单类型值
|
||||
* @return array
|
||||
*/
|
||||
public static function data()
|
||||
{
|
||||
return [
|
||||
self::RECHARGE => [
|
||||
'name' => '用户充值',
|
||||
'value' => self::RECHARGE,
|
||||
'describe' => '用户充值:%s',
|
||||
],
|
||||
self::CONSUME => [
|
||||
'name' => '用户消费',
|
||||
'value' => self::CONSUME,
|
||||
'describe' => '用户消费:%s',
|
||||
],
|
||||
self::ADMIN => [
|
||||
'name' => '管理员操作',
|
||||
'value' => self::ADMIN,
|
||||
'describe' => '后台管理员 [%s] 操作',
|
||||
],
|
||||
self::REFUND => [
|
||||
'name' => '订单退款',
|
||||
'value' => self::REFUND,
|
||||
'describe' => '订单退款:%s',
|
||||
],
|
||||
self::SHARE => [
|
||||
'name' => '用户分销',
|
||||
'value' => self::SHARE,
|
||||
'describe' => '用户分销:%s',
|
||||
],
|
||||
self::EXCHANGE => [
|
||||
'name' => '实体卡兑换',
|
||||
'value' => self::EXCHANGE,
|
||||
'describe' => '实体卡兑换:%s',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 萤火商城系统 [ 致力于通过产品和服务,帮助商家高效化开拓市场 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2017~2023 https://www.yiovo.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed 这不是一个自由软件,不允许对程序代码以任何形式任何目的的再发行
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: 萤火科技 <admin@yiovo.com>
|
||||
// +----------------------------------------------------------------------
|
||||
declare (strict_types=1);
|
||||
|
||||
namespace app\common\enum\user\grade\log;
|
||||
|
||||
use app\common\enum\EnumBasics;
|
||||
|
||||
/**
|
||||
* 会员等级变更记录表 -> 变更类型
|
||||
* Class ChangeType
|
||||
* @package app\common\enum\user\grade\log
|
||||
*/
|
||||
class ChangeType extends EnumBasics
|
||||
{
|
||||
// 后台管理员设置
|
||||
const ADMIN_USER = 10;
|
||||
|
||||
// 自动升级
|
||||
const AUTO_UPGRADE = 20;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user