29 lines
491 B
Python
29 lines
491 B
Python
# -*- coding = utf-8 -*-
|
|
# @Time : 2025/2/24 下午9:51
|
|
# @File : schema.py
|
|
# @Software : PyCharm
|
|
# @Author : xingc
|
|
# @Desc :
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class CreateOrderIn(BaseModel):
|
|
product_id: int
|
|
openid: str
|
|
total_fee: int
|
|
body: str
|
|
|
|
|
|
class PaymentParamsOut(BaseModel):
|
|
appId: str
|
|
timeStamp: str
|
|
nonceStr: str
|
|
package: str
|
|
package: str
|
|
signType: str
|
|
|
|
|
|
class CreateOrderOut(BaseModel):
|
|
payment_params: PaymentParamsOut
|
|
order_id: str
|