feat:add report
This commit is contained in:
+11
-1
@@ -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)
|
||||
Reference in New Issue
Block a user