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
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-15 01:44 +0000
2# from pydantic import SecretStr
5from datetime import datetime
6from typing import Any
8from sqlmodel import Field
10from app.core.base import BaseInputDTO
13class GetUserInputDTO(BaseInputDTO):
14 user_id: str
16class CreateUserInputDTO(BaseInputDTO):
17 user_id: str
18 user_password: str
19 user_name: str
20 user_role_code: str
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)
29class DeleteUserInputDTO(BaseInputDTO):
30 user_id: str
32class QueryUserInputDTO(BaseInputDTO):
33 offset: int
34 limit: int
35 query: dict[str, Any]