feat:add get last record

This commit is contained in:
shahzeydyfah
2024-06-17 10:15:41 +03:30
parent 029143e456
commit 210d708070
+2 -2
View File
@@ -19,9 +19,9 @@ repo = BillRepository()
def create(coding: ThisModel = Body(...)):
pass
@router.get('last/{contract_id}', response_model=ThisModel, tags=_tag_base)
@router.get('/last/{contract_id}', response_model=ThisModel, tags=_tag_base)
@shrink(repo.search_last)
def get(contract_id: UUID):
def last(contract_id: UUID):
pass
@router.put('/{_id}', response_model=ThisModel, tags=_tag_base)