feat:add report

This commit is contained in:
shahzeydyfah
2024-10-03 23:14:13 +03:30
parent 248ef67e45
commit 23b91330e1
4 changed files with 127 additions and 15 deletions
+11 -1
View File
@@ -1,4 +1,4 @@
from app.models.report import StatusReport, ReportCountry
from app.models.report import StatusReport, ReportCountry, DonutList
from app.repositories.report import ReportRepository
from core.app import app
from core.utils.router import generate_router, shrink
@@ -28,4 +28,14 @@ def report_country(_inp: ReportCountry):
def exist_project_state():
pass
@router.get('/donut/{_select}', tags=_tag_base)
@shrink(repo.donut)
def donut(_select:int):
pass
@router.post('/list-donut', tags=_tag_base)
@shrink(repo.list_donut)
def list_donut(_inp: DonutList):
pass
app.include_router(router)