Commit e2a22fde authored by wang.wenrong's avatar wang.wenrong

index_set_0

parent d9ddbf8f
...@@ -21,7 +21,8 @@ async def post_drop_dust_wave(req, body: DdwReq) -> DdwResp: ...@@ -21,7 +21,8 @@ async def post_drop_dust_wave(req, body: DdwReq) -> DdwResp:
start = body.start start = body.start
end = body.end end = body.end
# return await post_drop_dust_wave_service(point_id, start, end) # return await post_drop_dust_wave_service(point_id, start, end)
return DdwResp() return DdwResp(slots=[], value=[])
@summary("降尘措施-喷淋-运行曲线") @summary("降尘措施-喷淋-运行曲线")
async def post_drop_water_wave(req, body: DdwReq) -> DdwResp: async def post_drop_water_wave(req, body: DdwReq) -> DdwResp:
...@@ -29,25 +30,29 @@ async def post_drop_water_wave(req, body: DdwReq) -> DdwResp: ...@@ -29,25 +30,29 @@ async def post_drop_water_wave(req, body: DdwReq) -> DdwResp:
start = body.start start = body.start
end = body.end end = body.end
# return await drop_water_wave_service(point_id, start, end) # return await drop_water_wave_service(point_id, start, end)
return DdwResp() return DdwResp(slots=[], value=[])
@summary("首页-运行监测-统计") @summary("首页-运行监测-统计")
async def post_index_run_monit(req, body: DeReq) -> IrmResp: async def post_index_run_monit(req, body: DeReq) -> IrmResp:
cid = body.cid cid = body.cid
# return await index_run_monit_service(cid) # return await index_run_monit_service(cid)
return IrmResp() return IrmResp(water={}, fog_gun={})
@summary("首页-运行统计-扬尘") @summary("首页-运行统计-扬尘")
async def post_index_op_stat(req, body: DeReq) -> IosResp: async def post_index_op_stat(req, body: DeReq) -> IosResp:
cid = body.cid cid = body.cid
# return await index_op_stat_service(cid) # return await index_op_stat_service(cid)
return IosResp() return IosResp(water={}, fog_gun={})
@summary("首页-今日数据-扬尘") @summary("首页-今日数据-扬尘")
async def post_index_today_info(req, body: DeReq) -> ItiResp: async def post_index_today_info(req, body: DeReq) -> ItiResp:
cid = body.cid cid = body.cid
# return await index_today_info_service(cid) # return await index_today_info_service(cid)
return ItiResp() return ItiResp(pm2_5={}, pm10={}, tsp={}, today_water=0, today_kwh=0)
@summary("首页-运行趋势-喷淋") @summary("首页-运行趋势-喷淋")
async def post_index_water_stati(req, body: WsStatiReq) -> WsStatiResp: async def post_index_water_stati(req, body: WsStatiReq) -> WsStatiResp:
...@@ -55,7 +60,8 @@ async def post_index_water_stati(req, body: WsStatiReq) -> WsStatiResp: ...@@ -55,7 +60,8 @@ async def post_index_water_stati(req, body: WsStatiReq) -> WsStatiResp:
end = body.end end = body.end
date_type = body.date_type date_type = body.date_type
# return await index_water_service(start, end, date_type) # return await index_water_service(start, end, date_type)
return WsStatiResp() return WsStatiResp(pm2_5=[], pm10=[], tsp=[], water_or_electric=[], slots=[])
@summary("首页-运行趋势-雾炮") @summary("首页-运行趋势-雾炮")
async def post_index_wave_stati(req, body: WsStatiReq) -> WsStatiResp: async def post_index_wave_stati(req, body: WsStatiReq) -> WsStatiResp:
...@@ -63,4 +69,4 @@ async def post_index_wave_stati(req, body: WsStatiReq) -> WsStatiResp: ...@@ -63,4 +69,4 @@ async def post_index_wave_stati(req, body: WsStatiReq) -> WsStatiResp:
start = body.start start = body.start
end = body.end end = body.end
# return await index_electric_service(cid, start, end) # return await index_electric_service(cid, start, end)
return WsStatiResp() return WsStatiResp(pm2_5=[], pm10=[], tsp=[], water_or_electric=[], slots=[])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment