feat:add get last record
This commit is contained in:
+2
-2
@@ -19,9 +19,9 @@ repo = BillRepository()
|
|||||||
def create(coding: ThisModel = Body(...)):
|
def create(coding: ThisModel = Body(...)):
|
||||||
pass
|
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)
|
@shrink(repo.search_last)
|
||||||
def get(contract_id: UUID):
|
def last(contract_id: UUID):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@router.put('/{_id}', response_model=ThisModel, tags=_tag_base)
|
@router.put('/{_id}', response_model=ThisModel, tags=_tag_base)
|
||||||
|
|||||||
Reference in New Issue
Block a user