Coverage for app/ddd/application/usecase/user/query_user_usecase.py: 100%
7 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
1from app.ddd.application.dto.user import QueryUserInputDTO, QueryUserOutputDTO
2from app.ddd.application.usecase.user.base_user_usecase import BaseUserUseCase
5class QueryUserUseCase(BaseUserUseCase[QueryUserInputDTO, QueryUserOutputDTO]):
6 def execute(self, input_dto: QueryUserInputDTO) -> QueryUserOutputDTO:
7 print(input_dto)
8 users = self._uow.user_repository.query()
9 return QueryUserOutputDTO(users = users)