request.py 302 B

1234567891011121314151617181920
  1. from dataclasses import dataclass
  2. from dataclasses_json import dataclass_json
  3. from typing import List
  4. @dataclass_json
  5. @dataclass
  6. class User:
  7. name: str
  8. password: str
  9. @dataclass_json
  10. @dataclass
  11. class Link:
  12. url: str
  13. name: str
  14. description: str
  15. private: bool
  16. tags: List[str]