fix(project):get list with ids
This commit is contained in:
+10
-1
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user