|
|
|
|
@ -15,6 +15,7 @@ from .service import (
|
|
|
|
|
get_by_id,
|
|
|
|
|
get_all,
|
|
|
|
|
create,
|
|
|
|
|
get_top_10_replacement_priorities,
|
|
|
|
|
update,
|
|
|
|
|
delete,
|
|
|
|
|
generate_all_transaction,
|
|
|
|
|
@ -50,6 +51,17 @@ async def get_equipments(
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@router.get(
|
|
|
|
|
"/top-10-replacement-priorities",
|
|
|
|
|
response_model=StandardResponse[List[EquipmentTop10EconomicLife]],
|
|
|
|
|
)
|
|
|
|
|
async def get_calculated_top_10_replacement_priorities(db_session: DbSession):
|
|
|
|
|
equipment_data = await get_top_10_replacement_priorities(db_session=db_session)
|
|
|
|
|
return StandardResponse(
|
|
|
|
|
data=equipment_data,
|
|
|
|
|
message="Top 10 Replacement Priorities Data retrieved successfully",
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
@router.get(
|
|
|
|
|
"/top-10-economic-life",
|
|
|
|
|
response_model=StandardResponse[List[EquipmentTop10EconomicLife]],
|
|
|
|
|
|