# -*- 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 package: 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