新增画布3D部分模型
This commit is contained in:
21
src/schemas/generate_3D.py
Normal file
21
src/schemas/generate_3D.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from pydantic import BaseModel, Field, confloat
|
||||
from typing import Optional, List, Dict, Any
|
||||
|
||||
|
||||
class ImageTo3DRequest(BaseModel):
|
||||
input_images: List[str] = Field(
|
||||
...,
|
||||
description="输入图片路径列表"
|
||||
)
|
||||
|
||||
model: str = Field(
|
||||
default="single",
|
||||
description="模型类型: single 或 multi"
|
||||
)
|
||||
|
||||
|
||||
class ToSVGRequest(BaseModel):
|
||||
minio_glb_path: str = Field(
|
||||
...,
|
||||
description="输入图片路径列表"
|
||||
)
|
||||
8
src/schemas/response_template.py
Normal file
8
src/schemas/response_template.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from pydantic import BaseModel
|
||||
from typing import Any, Optional
|
||||
|
||||
|
||||
class ResponseModel(BaseModel):
|
||||
code: int = 200
|
||||
msg: str = "OK!"
|
||||
data: Optional[Any] = None
|
||||
Reference in New Issue
Block a user