service_man/api/application/contracts/user/user_response.py

17 lines
251 B
Python

from dataclasses import dataclass
from uuid import UUID
@dataclass(frozen=True)
class UserResponse:
name: str
email: str
@dataclass(frozen=True)
class UserDetaledResponse:
id: UUID
name: str
email: str
hashed_password: str