项目初次提交

This commit is contained in:
2025-04-11 08:54:28 +08:00
commit 9e14a3256f
220 changed files with 15673 additions and 0 deletions

View File

@ -0,0 +1,5 @@
from .project_info import ProjectInfoParams
from .project_image import ProjectImageParams
from .project_label import ProjectLabelParams
from .project_img_label import ProjectImgLabelParams
from .project_img_leafer import ProjectImgLeaferParams

View File

@ -0,0 +1,25 @@
#!/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"),
file_name: str | None = Query(None, title="文件名称"),
params: Paging = Depends()
):
super().__init__(params)
self.img_type = img_type
self.project_id = project_id
self.file_name = file_name

View File

@ -0,0 +1,20 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# @version : 1.0
# @Create Time : 2025/04/03 10:29
# @File : project_img_label.py
# @IDE : PyCharm
# @desc : 项目图片标签信息
from fastapi import Depends, Query
from core.dependencies import Paging, QueryParams
class ProjectImgLabelParams(QueryParams):
def __init__(
self,
image_id: int | None = Query(None, title="图片id"),
params: Paging = Depends()
):
super().__init__(params)
self.image_id = image_id

View File

@ -0,0 +1,21 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# @version : 1.0
# @Create Time : 2025/04/03 10:29
# @File : project_img_leafer.py
# @IDE : PyCharm
# @desc : 项目图片leafer信息
from fastapi import Depends, Query
from core.dependencies import Paging, QueryParams
class ProjectImgLeaferParams(QueryParams):
def __init__(
self,
image_id: int | None = Query(None, title="图片id"),
params: Paging = Depends()
):
super().__init__(params)
self.image_id = image_id

View File

@ -0,0 +1,28 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# @version : 1.0
# @Create Time : 2025/04/03 10:25
# @File : project_info.py
# @IDE : PyCharm
# @desc : 项目信息
from fastapi import Depends, Query
from core.dependencies import Paging, QueryParams
class ProjectInfoParams(QueryParams):
def __init__(
self,
project_name: str | None = Query(None, title="项目名称"),
type_code: str | None = Query(None, title="项目类别"),
dept_id: str | None = Query(None, title="部门id"),
user_id: str | None = Query(None, title="用户id"),
params: Paging = Depends()
):
super().__init__(params)
self.project_name = ("like", project_name)
self.type_code = type_code
self.dept_id = dept_id
self.user_id = user_id

View File

@ -0,0 +1,20 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# @version : 1.0
# @Create Time : 2025/04/03 10:28
# @File : project_label.py
# @IDE : PyCharm
# @desc : 项目标签信息
from fastapi import Depends, Query
from core.dependencies import Paging, QueryParams
class ProjectLabelParams(QueryParams):
def __init__(
self,
project_id: int | None = Query(None, title="项目id"),
params: Paging = Depends()
):
super().__init__(params)
self.project_id = project_id