功能:增加测试批次生命周期管理
This commit is contained in:
@@ -7,6 +7,7 @@ from pydantic.alias_generators import to_camel
|
||||
from module_business.domain.enums import TestBatchStatus
|
||||
|
||||
PositiveId = Annotated[int, Field(gt=0)]
|
||||
NonNegativeCount = Annotated[int, Field(ge=0)]
|
||||
|
||||
|
||||
class TestBatchApiModel(BaseModel):
|
||||
@@ -45,7 +46,7 @@ class TestBatchModel(TestBatchApiModel):
|
||||
closed_at: datetime | None = None
|
||||
purged_by: int | None = None
|
||||
purged_at: datetime | None = None
|
||||
purge_summary: dict[str, int] | None = None
|
||||
purge_summary: dict[str, NonNegativeCount] | None = None
|
||||
|
||||
|
||||
class TestBatchOptionModel(TestBatchApiModel):
|
||||
|
||||
Reference in New Issue
Block a user