生成项目任务/chat任务软删|生成资源管控回收|生成资源token验签API预处理
This commit is contained in:
@@ -416,6 +416,28 @@ class GenerationAITaskListOut(BaseModel):
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
class GenerationAITaskDeleteOut(BaseModel):
|
||||
"""AI生成任务删除响应体。"""
|
||||
|
||||
model_config = ConfigDict(
|
||||
json_schema_extra={
|
||||
"example": {
|
||||
"message": "任务已删除",
|
||||
"task_id": "0019e0a44895b6d837d",
|
||||
"deleted": True,
|
||||
"freed_size_bytes": 123456,
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
message: str = Field(..., description="操作结果提示信息")
|
||||
task_id: str = Field(..., description="被软删除的AI生成任务ID")
|
||||
deleted: bool = Field(..., description="是否已完成软删除")
|
||||
freed_size_bytes: int = Field(0, description="本次软删联动释放的有效资源空间字节数")
|
||||
|
||||
|
||||
class GenerationAIRetryOut(BaseModel):
|
||||
"""AI生成任务重试响应体。"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user