update order model
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Constants;
|
||||
|
||||
use Hyperf\Constants\Annotation\Constants;
|
||||
use Hyperf\Constants\Annotation\Message;
|
||||
use Hyperf\Constants\EnumConstantsTrait;
|
||||
|
||||
#[Constants]
|
||||
enum OrderType: int
|
||||
{
|
||||
use EnumConstantsTrait;
|
||||
|
||||
// 普通订单
|
||||
#[Message("Normal Order")]
|
||||
case Normor_Order = 1;
|
||||
|
||||
// 有可能存在其他特殊订单的情况
|
||||
// 比如:
|
||||
// 1. 1 元锁定优惠订单
|
||||
// 2. 不差价无实物订单
|
||||
// 3. 服务类订单
|
||||
// 4. 退运费订单(仅存在售后单,主订单不存在)
|
||||
}
|
||||
Reference in New Issue
Block a user