Files
2025-05-07 22:52:09 +08:00

38 lines
654 B
Python

# -*- coding = utf-8 -*-
# @Time : 2025/2/24 下午9:51
# @File : schema.py
# @Software : PyCharm
# @Author : xingc
# @Desc :
from pydantic import BaseModel
from core.base.schema import OrderStatusType
class CreateOrderIn(BaseModel):
product_id: int
openid: str
total_fee: int
body: str
class PaymentParamsOut(BaseModel):
appId: str
timeStamp: str
nonceStr: str
package: str
paySign: str
signType: str
class CreateOrderOut(BaseModel):
payment_params: PaymentParamsOut
order_id: str
class CheckOrderOut(BaseModel):
order_id: str
status: OrderStatusType
user_id: int
product_id: int