feat(pay): 增加支付状态paid 已支付
This commit is contained in:
@@ -244,10 +244,10 @@ class Order(BaseModel, DateModel):
|
||||
total_fee: Mapped[int] = mapped_column(Integer, nullable=True, comment='发起的总金额,单位为分')
|
||||
notify_total_fee: Mapped[int] = mapped_column(Integer, nullable=True, comment='回调成功支付的总金额,单位为分')
|
||||
pay_url: Mapped[str] = mapped_column(String(255), nullable=True, comment='支付地址')
|
||||
status: Mapped[str] = mapped_column(
|
||||
status: Mapped[base_schema.OrderStatusType] = mapped_column(
|
||||
Enum(base_schema.OrderStatusType, inherit_schema=True),
|
||||
server_default=base_schema.OrderStatusType.INIT.value,
|
||||
comment='订单状态,init:初始化 fail:失败 ok:完成 wait payment:待支付 cancel. 取消'
|
||||
comment='订单状态,init:初始化 fail:失败 ok:完成 wait payment:待支付 paid:已支付 cancel. 取消'
|
||||
)
|
||||
ip_address: Mapped[str] = mapped_column(String(255), nullable=True, comment='操作ip')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user