alembic
application
apps
business
deepsort
detect
project
models
params
__init__.py
project_image.py
project_img_label.py
project_img_leafer.py
project_info.py
project_label.py
schemas
__init__.py
crud.py
views.py
train
__init__.py
vadmin
__init__.py
core
db
deep_sort
logs
utils
yolov5
.gitignore
README.md
alembic.ini
main.py
requirements.txt
24 lines
658 B
Python
24 lines
658 B
Python
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
# @version : 1.0
|
|
# @Create Time : 2025/04/03 10:27
|
|
# @File : project_image.py
|
|
# @IDE : PyCharm
|
|
# @desc : 项目图片信息
|
|
|
|
from fastapi import Depends, Query
|
|
from core.dependencies import Paging, QueryParams
|
|
|
|
|
|
class ProjectImageParams(QueryParams):
|
|
def __init__(
|
|
self,
|
|
img_type: str | None = Query(None, title="图片类别"),
|
|
project_id: int | None = Query(None, title="项目id"),
|
|
params: Paging = Depends()
|
|
):
|
|
super().__init__(params)
|
|
self.img_type = img_type
|
|
self.project_id = project_id
|
|
|