Spaces:
Running
Running
rogerxavier
commited on
Commit
•
7567f68
1
Parent(s):
a76a798
Update server/pydanticModel.py
Browse files- server/pydanticModel.py +2 -1
server/pydanticModel.py
CHANGED
@@ -68,6 +68,7 @@ class AfdianOrderDetail(BaseModel):
|
|
68 |
out_trade_no: str
|
69 |
user_id: str
|
70 |
plan_id: str
|
|
|
71 |
month: int
|
72 |
total_amount: Optional[int] = Field(default=None, alias="total_amount") # 这里自动转int了
|
73 |
show_amount: str
|
@@ -77,7 +78,7 @@ class AfdianOrderDetail(BaseModel):
|
|
77 |
product_type: int
|
78 |
discount: str
|
79 |
# sku_detail: List[SKUDetail] # 更新为 SKUDetail 列表
|
80 |
-
sku_detail: Optional[List[SKUDetail]] = Field(default=[], alias="sku_detail")
|
81 |
# create_time: int
|
82 |
create_time: Optional[int] = Field(default=None, alias="create_time")
|
83 |
# plan_title: str
|
|
|
68 |
out_trade_no: str
|
69 |
user_id: str
|
70 |
plan_id: str
|
71 |
+
title: Optional[str] = Field(default=None, alias="title") #just afdian test have
|
72 |
month: int
|
73 |
total_amount: Optional[int] = Field(default=None, alias="total_amount") # 这里自动转int了
|
74 |
show_amount: str
|
|
|
78 |
product_type: int
|
79 |
discount: str
|
80 |
# sku_detail: List[SKUDetail] # 更新为 SKUDetail 列表
|
81 |
+
sku_detail: Optional[List[SKUDetail]] = Field(default=[], alias="sku_detail") #兼容afdian test 请求
|
82 |
# create_time: int
|
83 |
create_time: Optional[int] = Field(default=None, alias="create_time")
|
84 |
# plan_title: str
|