Coverage for bc/kwai-bc-portal/src/kwai_bc_portal/page_command.py: 100%
4 statements
« prev ^ index » next coverage.py v7.11.0, created at 2024-01-01 00:00 +0000
« prev ^ index » next coverage.py v7.11.0, created at 2024-01-01 00:00 +0000
1"""Module that defines common command for create/update pages."""
3from dataclasses import dataclass
5from kwai_core.domain.use_case import TextCommand
8@dataclass(kw_only=True, frozen=True, slots=True)
9class PageCommand:
10 """Input for the use case "Create Page"."""
12 enabled: bool
13 texts: list[TextCommand]
14 application: int
15 priority: int
16 remark: str