es
parent
565460b1a9
commit
aba812933c
@ -0,0 +1,69 @@ |
||||
<?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\goods; |
||||
|
||||
use app\common\enum\EnumBasics; |
||||
|
||||
/** |
||||
* 枚举类:商品类型 |
||||
* Class GoodsType |
||||
* @package app\common\enum\goods |
||||
*/ |
||||
class GoodsDeliveryTime extends EnumBasics |
||||
{ |
||||
// 实物商品 |
||||
const ZERO = 0; |
||||
const ONE = 1; |
||||
const TWO = 2; |
||||
const THREE = 3; |
||||
const FOUR = 4; |
||||
const FIVE = 4; |
||||
const SIX = 5; |
||||
/** |
||||
* 获取枚举数据 |
||||
* @return array |
||||
*/ |
||||
public static function data(): array |
||||
{ |
||||
return [ |
||||
self::ZERO => [ |
||||
'name' => '24小时', |
||||
'value' => self::ZERO, |
||||
], |
||||
self::ONE => [ |
||||
'name' => '48小时', |
||||
'value' => self::ONE, |
||||
], |
||||
self::TWO => [ |
||||
'name' => '72小时', |
||||
'value' => self::TWO, |
||||
], |
||||
self::THREE => [ |
||||
'name' => '7天内', |
||||
'value' => self::THREE, |
||||
], |
||||
self::FOUR => [ |
||||
'name' => '15天内', |
||||
'value' => self::FOUR, |
||||
], |
||||
self::FIVE => [ |
||||
'name' => '30天内', |
||||
'value' => self::FIVE, |
||||
], |
||||
self::SIX => [ |
||||
'name' => '45天内', |
||||
'value' => self::SIX, |
||||
] |
||||
]; |
||||
} |
||||
} |
Loading…
Reference in new issue