feat:add get list for progress rial and physical

This commit is contained in:
shahzeydyfah
2024-09-21 13:39:18 +03:30
parent bf5f1598f2
commit 248ef67e45
4 changed files with 21 additions and 1 deletions
+6
View File
@@ -1,3 +1,4 @@
from typing import List
from uuid import UUID
from fastapi import Body
@@ -24,6 +25,11 @@ def create(coding: ThisModel = Body(...)):
def last_record(last:LastRecord):
pass
@router.get('/list/{_id}', response_model=List[ThisModel], tags=_tag_base, description='پیشرفت فیزیکی')
@shrink(repo.list_by_project)
def list_by_project(_id: UUID):
pass
@router.put('/{_id}', response_model=ThisModel, tags=_tag_base, description='پیشرفت فیزیکی')
@shrink(repo.update)
def update(_id: UUID, coding: ThisModel = Body(...)):
+6
View File
@@ -1,3 +1,4 @@
from typing import List
from uuid import UUID
from fastapi import Body
@@ -20,6 +21,11 @@ repo = RialProgressRepository()
def create(coding: ThisModel = Body(...)):
pass
@router.get('/list/{_id}', response_model=List[ThisModel], tags=_tag_base, description='پیشرفت فیزیکی')
@shrink(repo.list_by_project)
def list_by_project(_id: UUID):
pass
@router.post('/last', response_model=ThisModel, tags=_tag_base, description='پیشرفت ریالی')
@shrink(repo.last_record)
def last_record(last:LastRecord):