更新订单状态
This commit is contained in:
parent
56e19aef6f
commit
20fd355b35
@ -7,11 +7,12 @@ from .database import Base
|
|||||||
import enum
|
import enum
|
||||||
|
|
||||||
class OrderStatus(str, enum.Enum):
|
class OrderStatus(str, enum.Enum):
|
||||||
CREATED = "CREATED" # 已下单
|
CREATED = "CREATED" # 已创建
|
||||||
ACCEPTED = "ACCEPTED" # 已接单
|
CANCELLED = "CANCELLED" # 已取消
|
||||||
|
RECEIVED = "RECEIVED" # 已接单
|
||||||
|
DELIVERING = "DELIVERING" # 配送中
|
||||||
UNPAID = "UNPAID" # 未支付
|
UNPAID = "UNPAID" # 未支付
|
||||||
COMPLETED = "COMPLETED" # 已完成
|
COMPLETED = "COMPLETED" # 已完成
|
||||||
CANCELLED = "CANCELLED" # 已取消
|
|
||||||
|
|
||||||
class DeliveryMethod(str, enum.Enum):
|
class DeliveryMethod(str, enum.Enum):
|
||||||
DELIVERY_AT_DOORSTEP = "DELIVERY_AT_DOORSTEP" # 放在门口
|
DELIVERY_AT_DOORSTEP = "DELIVERY_AT_DOORSTEP" # 放在门口
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user