Files
xiaoxia-saas/apps/api/app/schemas/generation_task.py
T
xiaoxia 926d0fa272
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
Tests / lint (push) Failing after 1926h42m54s
Tests / test (push) Failing after 1926h42m56s
fix: 为所有 ORM 模型添加外键约束及级联删除策略 (#65)
2026-06-28 08:47:51 +08:00

24 lines
561 B
Python

from pydantic import BaseModel, Field
class CreateGenerationTaskRequest(BaseModel):
project_id: str = Field(..., min_length=1)
asset_library_id: str = Field(..., min_length=1)
strategy_id: str = ""
voice_library_id: str = ""
edit_plan_id: str = ""
created_by_user_id: str = ""
class GenerationTaskResponse(BaseModel):
id: str
project_id: str
asset_library_id: str
strategy_id: str
voice_library_id: str
edit_plan_id: str | None
status: str
progress: float
result_count: int
error_message: str