feat: deal status history table
This commit is contained in:
@ -54,3 +54,15 @@ async def delete_status(
|
||||
pk: int = Path(),
|
||||
):
|
||||
return await StatusService(session).delete(pk)
|
||||
|
||||
|
||||
@router.get(
|
||||
"/history/{dealId}",
|
||||
response_model=GetStatusHistoryResponse,
|
||||
operation_id="get_status_history",
|
||||
)
|
||||
async def get_status_history(
|
||||
session: SessionDependency,
|
||||
deal_id: int = Path(alias="dealId"),
|
||||
):
|
||||
return await StatusService(session).get_status_history(deal_id)
|
||||
|
||||
Reference in New Issue
Block a user