feat:get list in register status
This commit is contained in:
@@ -15,3 +15,7 @@ class RegisterStatusRepository(BaseRepository):
|
||||
return last[0]['number']
|
||||
else:
|
||||
return None
|
||||
|
||||
async def get_list(self,project_id:uuid.UUID):
|
||||
list_status = await use_collection(TaskEnv.CLN_AUDIT_STATUS).find({"project_id":project_id}).to_list(None)
|
||||
return list_status
|
||||
|
||||
@@ -24,6 +24,11 @@ def create(coding: ThisModel = Body(...)):
|
||||
@shrink(repo.get_last)
|
||||
def get_last(project_id: UUID):
|
||||
pass
|
||||
|
||||
@router.get('/list/{project_id}', response_model=list[ThisModel], tags=_tag_base, description='صورت وضعیت در قسمت رسیدگی')
|
||||
@shrink(repo.get_list)
|
||||
def get_list(project_id: UUID):
|
||||
pass
|
||||
@router.put('/{_id}', response_model=ThisModel, tags=_tag_base, description='صورت وضعیت در قسمت رسیدگی')
|
||||
@shrink(repo.update)
|
||||
def update(_id: UUID, coding: ThisModel = Body(...)):
|
||||
|
||||
Reference in New Issue
Block a user