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