fix:add sum
This commit is contained in:
@@ -24,6 +24,10 @@ def create(coding: ThisModel = Body(...)):
|
||||
def is_last(coding: CheckLast = Body(...)):
|
||||
pass
|
||||
|
||||
@router.get('/sum/{_id}', tags=_tag_base)
|
||||
@shrink(repo.cal_sum)
|
||||
def cal_sum(_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