Coverage for app/ddd/application/dto/user/user_input_dto.py: 100%

21 statements  

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

1 

2# from pydantic import SecretStr 

3 

4 

5from datetime import datetime 

6from typing import Any 

7 

8from sqlmodel import Field 

9 

10from app.core.base import BaseInputDTO 

11 

12 

13class GetUserInputDTO(BaseInputDTO): 

14 user_id: str 

15 

16class CreateUserInputDTO(BaseInputDTO): 

17 user_id: str 

18 user_password: str 

19 user_name: str 

20 user_role_code: str 

21 

22class PatchUserInputDTO(BaseInputDTO): 

23 user_id: str 

24 updated_at: datetime 

25 user_password: str | None = Field(None) 

26 user_name: str | None = Field(None) 

27 user_role_code: str | None = Field(None) 

28 

29class DeleteUserInputDTO(BaseInputDTO): 

30 user_id: str 

31 

32class QueryUserInputDTO(BaseInputDTO): 

33 offset: int 

34 limit: int 

35 query: dict[str, Any]