diff --git a/backend/app/Constants/OrderType.php b/backend/app/Constants/OrderType.php index 89ca83d..e530ab8 100644 --- a/backend/app/Constants/OrderType.php +++ b/backend/app/Constants/OrderType.php @@ -14,13 +14,22 @@ enum OrderType: int use EnumConstantsTrait; // 普通订单 - #[Message("Normal Order")] + #[Message("Normal order")] case Normor_Order = 1; - // 有可能存在其他特殊订单的情况 - // 比如: - // 1. 1 元锁定优惠订单 - // 2. 不差价无实物订单 - // 3. 服务类订单 - // 4. 退运费订单(仅存在售后单,主订单不存在) + #[Message("Order for voucher")] // 1 元锁定优惠订单 + case VOUCHER_ORDER = 2; + + #[Message("Order for compensation the loss of seller")] // 补差价订单 无实物 + case SELLER_COMPENSATION_ORDER = 3; + + #[Message("Order for service which has no physical goods")] // 服务类订单 无实物 + case SERVICE_ORDER = 4; + + #[Message("Order for compensation the loss of buyer")] // 退运费订单(仅存在售后单,主订单不存在) + case BUYER_COMPENSATION_ORDER = 5; + + #[Message("Order then immediately refund")] + case REGRET_ORDER = 99; // 购买后秒退订单 - 通常不参与 gmv 指标核算 + }