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

14 lines
202 B
Python

from dataclasses import dataclass
@dataclass(frozen=True)
class UserCreateRequest:
name: str
email: str
password: str
@dataclass(frozen=True)
class GetUserByEmailRequest:
email: str