fastapi/models.py

16 lines
319 B
Python
Raw Normal View History

2023-03-10 10:46:21 +00:00
from decimal import Decimal
from typing import Optional
from pydantic import BaseModel
class Receive(BaseModel):
method: str
address: str
callback: Optional[str]
class Return(BaseModel):
address: str
destination: str
callback_url: Optional[str]
fee: Decimal
status: str