Coverage for app/ddd/application/dto/user/user_output_dto.py: 100%
15 statements
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-15 01:44 +0000
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-15 01:44 +0000
2from pydantic import SecretStr
4from app.core.base import BaseOutputDTO
5from app.ddd.domain import User
8class BaseUserOutputDTO(BaseOutputDTO):
9 user_id: str
10 user_password: SecretStr
11 user_name: str
12 user_role_code: str
13 # user_role_name: str
15 # user_creation_datetime: datetime
16 # user_update_datetime: datetime
19class GetUserOutputDTO(BaseOutputDTO):
20 user: User
22class CreateUserOutputDTO(BaseUserOutputDTO):
23 pass
25class PatchUserOutputDTO(BaseUserOutputDTO):
26 pass
28class DeleteUserOutputDTO(BaseOutputDTO):
29 user_id: str
31class QueryUserOutputDTO(BaseOutputDTO):
32 users: list[User]