Coverage for app/ddd/presentation/schema/user/user_response.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.6.10, created at 2025-01-15 01:44 +0000

1 

2 

3from app.core.base import BaseResponse 

4from app.ddd.domain.model import User 

5 

6 

7class GetUserResponse(BaseResponse): 

8 # user_id: str 

9 # user_password: SecretStr 

10 # user_name: str 

11 # user_role_code: str 

12 user: User 

13 

14class CreateUserResponse(BaseResponse): 

15 user_id: str 

16 

17class PatchUserResponse(BaseResponse): 

18 user_id: str 

19 

20class DeleteUserResponse(BaseResponse): 

21 user_id: str 

22 

23class QueryUserResponse(BaseResponse): 

24 users: list[User]