2024-03-31 01:36:57 +03:00
|
|
|
from dataclasses import dataclass
|
2024-03-31 04:18:41 +03:00
|
|
|
from uuid import UUID
|
2024-03-31 01:36:57 +03:00
|
|
|
|
|
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
|
|
class UserResponse:
|
|
|
|
name: str
|
|
|
|
email: str
|
2024-03-31 04:18:41 +03:00
|
|
|
|
|
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
|
|
class UserDetaledResponse:
|
|
|
|
id: UUID
|
|
|
|
name: str
|
|
|
|
email: str
|
|
|
|
hashed_password: str
|