feat:add report
This commit is contained in:
@@ -15,4 +15,5 @@ from .monitor_secondary import *
|
||||
from .financial_pre_payment import *
|
||||
from .financial_status import *
|
||||
from .financial_adjust import *
|
||||
from .delivery import *
|
||||
from .delivery import *
|
||||
from .report import *
|
||||
@@ -0,0 +1,26 @@
|
||||
from app.models.report import StatusReport, ReportCountry
|
||||
from app.repositories.report import ReportRepository
|
||||
from core.app import app
|
||||
from core.utils.router import generate_router, shrink
|
||||
|
||||
router_base_url = 'report'
|
||||
_tag_base = [router_base_url]
|
||||
router = generate_router(router_base_url, auth_dependencies=False, version='v2')
|
||||
repo = ReportRepository()
|
||||
|
||||
@router.post('/design/sts', tags=_tag_base)
|
||||
@shrink(repo.project_status_design)
|
||||
def project_status_design(_inp: StatusReport):
|
||||
pass
|
||||
|
||||
@router.post('/monitor/sts', tags=_tag_base)
|
||||
@shrink(repo.project_status_monitor)
|
||||
def project_status_monitor(_inp: StatusReport):
|
||||
pass
|
||||
|
||||
@router.post('/country', tags=_tag_base)
|
||||
@shrink(repo.report_country)
|
||||
def report_country(_inp: ReportCountry):
|
||||
pass
|
||||
|
||||
app.include_router(router)
|
||||
Reference in New Issue
Block a user