Spaces:
Running
Running
rogerxavier
commited on
Commit
•
d5b0b2f
1
Parent(s):
ee37dcf
Update server/pydanticModel.py
Browse files- server/pydanticModel.py +10 -5
server/pydanticModel.py
CHANGED
@@ -69,21 +69,26 @@ class AfdianOrderDetail(BaseModel):
|
|
69 |
user_id: str
|
70 |
plan_id: str
|
71 |
month: int
|
|
|
72 |
show_amount: str
|
73 |
status: int
|
74 |
remark: str
|
75 |
redeem_id: str
|
76 |
product_type: int
|
77 |
discount: str
|
78 |
-
sku_detail: List[SKUDetail] # 更新为 SKUDetail 列表
|
79 |
-
|
80 |
-
|
81 |
-
|
|
|
|
|
|
|
|
|
82 |
address_person: str
|
83 |
address_phone: str
|
84 |
address_address: str
|
85 |
custom_order_id: Optional[str] = Field(default=None, alias="custom_order_id")
|
86 |
-
|
87 |
|
88 |
class AfdianOrderData(BaseModel):
|
89 |
type: 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
|
74 |
status: int
|
75 |
remark: str
|
76 |
redeem_id: str
|
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
|
84 |
+
plan_title: Optional[str] = Field(default=None, alias="plan_title")
|
85 |
+
# user_private_id: str
|
86 |
+
user_private_id: Optional[str] = Field(default=None, alias="user_private_id")
|
87 |
address_person: str
|
88 |
address_phone: str
|
89 |
address_address: str
|
90 |
custom_order_id: Optional[str] = Field(default=None, alias="custom_order_id")
|
91 |
+
|
92 |
|
93 |
class AfdianOrderData(BaseModel):
|
94 |
type: str
|