完成项目推理模块的接口测试

This commit is contained in:
2025-04-23 16:38:55 +08:00
parent 0033746fe1
commit 5b38e91f61
8 changed files with 234 additions and 94 deletions

View File

@ -11,15 +11,15 @@ class ProjectDetect(BaseModel):
__tablename__ = "project_detect"
__table_args__ = ({'comment': '项目推理集合'})
project_id: Mapped[int] = mapped_column(Integer, nullable=False)
detect_name: Mapped[str] = mapped_column(String(64), nullable=False)
project_id: Mapped[int] = mapped_column(Integer)
detect_name: Mapped[str] = mapped_column(String(64))
detect_version: Mapped[int] = mapped_column(Integer)
detect_no: Mapped[str] = mapped_column(String(32))
detect_status: Mapped[int] = mapped_column(Integer)
file_type: Mapped[str] = mapped_column(String(10))
folder_url: Mapped[str] = mapped_column(String(255))
rtsp_url: Mapped[str] = mapped_column(String(255))
user_id: Mapped[int] = mapped_column(Integer, nullable=False)
folder_url: Mapped[str] = mapped_column(String(255), nullable=True)
rtsp_url: Mapped[str] = mapped_column(String(255), nullable=True)
user_id: Mapped[int] = mapped_column(Integer)
class ProjectDetectFile(BaseModel):