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/order/OrderSource.php
2020-04-25 22:20:29 +08:00

45 lines
847 B
PHP

<?php
namespace app\common\enum\order;
use app\common\enum\EnumBasics;
/**
* 订单来源
* Class OrderSource
* @package app\common\enum\order
*/
class OrderSource extends EnumBasics
{
// 普通订单
const MASTER = 10;
// 砍价订单
const BARGAIN = 20;
// 秒杀订单
const SHARP = 30;
/**
* 获取枚举数据
* @return array
*/
public static function data()
{
return [
self::MASTER => [
'name' => '普通订单',
'value' => self::MASTER,
],
self::BARGAIN => [
'name' => '砍价订单',
'value' => self::BARGAIN,
],
self::SHARP => [
'name' => '秒杀订单',
'value' => self::SHARP,
],
];
}
}