前后端交互完成

This commit is contained in:
2025-02-20 10:30:49 +08:00
parent e44ec67963
commit cdd05e95ba
6 changed files with 127 additions and 5 deletions

View File

@ -41,3 +41,21 @@ class ProjectImage(DbCommon):
image_url: Mapped[str] = mapped_column(String(255), nullable=False)
thumb_image_url: Mapped[str] = mapped_column(String(255), nullable=False)
project_id: Mapped[int] = mapped_column(Integer)
class ProjectImgLeafer(DbCommon):
"""项目图片leafer表"""
__tablename__ = "project_img_leafer"
image_id: Mapped[int] = mapped_column(Integer, nullable=False)
leafer: Mapped[dict] = mapped_column(JSON)
class ProjectImgLabel(DbCommon):
"""项目图片标签对应表一张图片对应多个label"""
__tablename__ = "project_img_label"
image_id: Mapped[int] = mapped_column(Integer, nullable=False)
label_id: Mapped[int] = mapped_column(Integer, nullable=False)
mark_center_x: Mapped[str] = mapped_column(String(64), nullable=False)
mark_center_y: Mapped[str] = mapped_column(String(64), nullable=False)
mark_width: Mapped[str] = mapped_column(String(64), nullable=False)
mark_height: Mapped[str] = mapped_column(String(64), nullable=False)