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

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 GetGroupInputDTO(BaseInputDTO): 

14 group_id: str 

15 

16class CreateGroupInputDTO(BaseInputDTO): 

17 group_responsible_user_id: str 

18 group_name: str 

19 

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) 

26 

27class DeleteGroupInputDTO(BaseInputDTO): 

28 group_id: str 

29 

30class QueryGroupInputDTO(BaseInputDTO): 

31 offset: int 

32 limit: int 

33 query: dict[str, Any]