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

1from app.ddd.application.dto.user import QueryUserInputDTO, QueryUserOutputDTO 

2from app.ddd.application.usecase.user.base_user_usecase import BaseUserUseCase 

3 

4 

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)