17 lines
284 B
Python
17 lines
284 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class RechargeRequest(BaseModel):
|
|
plan: str # package id
|
|
|
|
|
|
class PaymentOrderOut(BaseModel):
|
|
id: str
|
|
order_no: str
|
|
amount: float
|
|
credits: float
|
|
payment_method: str
|
|
status: str
|
|
|
|
model_config = {"from_attributes": True}
|