Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
U
unify_api2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chaonan
unify_api2
Commits
e2a22fde
Commit
e2a22fde
authored
Apr 17, 2023
by
wang.wenrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
index_set_0
parent
d9ddbf8f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
drop_dust.py
unify_api/modules/tsp_water/views/drop_dust.py
+13
-7
No files found.
unify_api/modules/tsp_water/views/drop_dust.py
View file @
e2a22fde
...
@@ -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
=
[]
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment