Добавлен API Квартплаты
This commit is contained in:
15
kv/routers/report.py
Normal file
15
kv/routers/report.py
Normal file
@ -0,0 +1,15 @@
|
||||
import kv.schemas as schemas
|
||||
import kv.crud as crud
|
||||
from kv.database import get_db
|
||||
from sqlalchemy.orm import Session
|
||||
from fastapi import APIRouter, Depends
|
||||
from typing import List
|
||||
router = APIRouter()
|
||||
|
||||
"""post"""
|
||||
|
||||
|
||||
@router.post("/repayment", response_model=List[schemas.RentRegisterNotices])
|
||||
def repayment(request: schemas.RentRegisterNoticeInit, db: Session = Depends(get_db)):
|
||||
data = crud.ReportViewSet.get_details(db, request)
|
||||
return data
|
Reference in New Issue
Block a user