The backend component to interface with the smart contract.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
320 B

  1. from pydantic import BaseModel
  2. class User(BaseModel):
  3. session_id: str
  4. auth_date: int
  5. username: str
  6. first_name: str
  7. last_name: str
  8. photo_url: str
  9. class AuthenticationRequest(BaseModel):
  10. id: int
  11. auth_date: int
  12. username: str
  13. first_name: str
  14. last_name: str
  15. photo_url: str