fix(project):get list with ids

This commit is contained in:
shahzeydyfah
2026-06-19 23:51:11 +03:30
parent 198784f144
commit 9fd5481461
3 changed files with 21 additions and 2 deletions
+10 -1
View File
@@ -3,7 +3,7 @@ from uuid import UUID
from fastapi import Body
from app.models.project import ProjectModel, UpdateSts
from app.models.project import ProjectModel, UpdateSts, ListWithIds
from app.repositories.project import ProjectRepository
from core.app import app
from core.utils.router import generate_router, shrink
@@ -32,6 +32,15 @@ def list_project_design():
def list_project_monitor():
pass
@router.post('/list/ids', response_model=ThisModel, tags=_tag_base)
@shrink(repo.list_project_with_ids)
def list_project_with_ids(inp:ListWithIds):
pass
@router.get('/list/all', response_model=List[ThisModel], tags=_tag_base)
@shrink(repo.list_project_with_select)
def list_project_with_select():
pass
@router.get('/list/project', response_model=List[ThisModel], tags=_tag_base)
@shrink(repo.list_project)
def list_project():