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

1 

2from pydantic import SecretStr 

3 

4from app.core.base import BaseOutputDTO 

5from app.ddd.domain import User 

6 

7 

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 

14 

15 # user_creation_datetime: datetime 

16 # user_update_datetime: datetime 

17 

18 

19class GetUserOutputDTO(BaseOutputDTO): 

20 user: User 

21 

22class CreateUserOutputDTO(BaseUserOutputDTO): 

23 pass 

24 

25class PatchUserOutputDTO(BaseUserOutputDTO): 

26 pass 

27 

28class DeleteUserOutputDTO(BaseOutputDTO): 

29 user_id: str 

30 

31class QueryUserOutputDTO(BaseOutputDTO): 

32 users: list[User]