Coverage for app/ddd/application/dto/group/group_input_dto.py: 100%
20 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 GetGroupInputDTO(BaseInputDTO):
14 group_id: str
16class CreateGroupInputDTO(BaseInputDTO):
17 group_responsible_user_id: str
18 group_name: str
20class PatchGroupInputDTO(BaseInputDTO):
21 group_id: str
22 updated_at: datetime
23 group_password: str | None = Field(None)
24 group_name: str | None = Field(None)
25 group_role_code: str | None = Field(None)
27class DeleteGroupInputDTO(BaseInputDTO):
28 group_id: str
30class QueryGroupInputDTO(BaseInputDTO):
31 offset: int
32 limit: int
33 query: dict[str, Any]