line.py 381 B

1234567891011121314151617181920212223242526
  1. from pydantic import BaseModel
  2. class TransactionNft(BaseModel):
  3. nftid: str
  4. address: str
  5. class Config:
  6. orm_mode = True
  7. class BuyNft(BaseModel):
  8. nftid: str
  9. userid: str
  10. amount: int
  11. class Config:
  12. orm_mode = True
  13. class NftDrops(BaseModel):
  14. userid: str
  15. email: str
  16. class callBack(BaseModel):
  17. type: str
  18. data: dict