Coverage for src/kwai/modules/portal/page_command.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.6.10, created at 2024-01-01 00:00 +0000

1"""Module that defines common command for create/update pages.""" 

2 

3from dataclasses import dataclass 

4 

5from kwai.core.domain.use_case import TextCommand 

6 

7 

8@dataclass(kw_only=True, frozen=True, slots=True) 

9class PageCommand: 

10 """Input for the use case "Create Page".""" 

11 

12 enabled: bool 

13 texts: list[TextCommand] 

14 application: int 

15 priority: int 

16 remark: str