增加支付宝支付相关页面和程序
This commit is contained in:
@@ -3,6 +3,7 @@ from pydantic import BaseModel
|
||||
|
||||
class RechargeRequest(BaseModel):
|
||||
plan: str # package id
|
||||
method: str = "wechat" # "wechat" or "alipay"
|
||||
|
||||
|
||||
class PaymentOrderOut(BaseModel):
|
||||
@@ -12,5 +13,6 @@ class PaymentOrderOut(BaseModel):
|
||||
credits: float
|
||||
payment_method: str
|
||||
status: str
|
||||
qr_url: str | None = None # Alipay QR code URL (transient, not persisted)
|
||||
|
||||
model_config = {"from_attributes": True}
|
||||
|
||||
Reference in New Issue
Block a user