fix:add sum

This commit is contained in:
shahzeydyfah
2024-03-27 06:37:25 +03:30
parent 72b562d25a
commit d37eef6802
2 changed files with 13 additions and 0 deletions
+4
View File
@@ -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(...)):