You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong/app/common/enum/user/balanceLog/Scene.php

97 lines
2.9 KiB

11 months ago
<?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;
5 months ago
//购买商城
const BUY_SHOP = 50;
11 months ago
10 months ago
//开通分销商
const DEALER = 70;
//开通会员
const MEMBER = 80;
8 months ago
//开通采购商
const WHOLESALER = 90;
11 months ago
/**
* 获取订单类型值
* @return array
*/
public static function data(): array
{
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',
10 months ago
],
5 months ago
self::BUY_SHOP => [
'name' => '购买商城',
'value' => self::BUY_SHOP,
'describe' => '购买商城:%s',
],
10 months ago
self::DEALER => [
'name' => '开通分销商',
'value' => self::DEALER,
'describe' => '开通分销商:%s',
],
self::MEMBER => [
'name' => '开通会员',
'value' => self::MEMBER,
'describe' => '开通会员:%s',
8 months ago
],
self::WHOLESALER => [
'name' => '开通采购商',
'value' => self::WHOLESALER,
'describe' => '开通采购商:%s',
11 months ago
]
];
}
}