2026-04-02 11:30:34 +08:00
|
|
|
from pydantic import BaseModel, Field, confloat, HttpUrl
|
2026-03-17 16:02:04 +08:00
|
|
|
from typing import Optional, List, Dict, Any
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ImageTo3DRequest(BaseModel):
|
|
|
|
|
input_images: List[str] = Field(
|
|
|
|
|
...,
|
|
|
|
|
description="输入图片路径列表"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
model: str = Field(
|
|
|
|
|
default="single",
|
|
|
|
|
description="模型类型: single 或 multi"
|
|
|
|
|
)
|
2026-04-02 11:30:34 +08:00
|
|
|
task_id: str = Field(
|
|
|
|
|
...
|
|
|
|
|
)
|
|
|
|
|
callback_url: str # 必填,客户端提供的回调地址
|
2026-03-17 16:02:04 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class ToSVGRequest(BaseModel):
|
|
|
|
|
minio_glb_path: str = Field(
|
|
|
|
|
...,
|
|
|
|
|
description="输入图片路径列表"
|
|
|
|
|
)
|
2026-04-02 13:59:00 +08:00
|
|
|
task_id: str = Field(...)
|
2026-04-02 11:30:34 +08:00
|
|
|
callback_url: str # 必填
|