|
|
@ -9,7 +9,7 @@ module.exports = function (app, router, opts) { |
|
|
|
app.fs.api.logAttr['get/pump/station'] = { content: '获取所有站点信息', visible: true }; |
|
|
|
router.get('/pump/station', data.getPumpStation); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.fs.api.logAttr['POST/axyData'] = { content: '获取安心云数据', visible: true }; |
|
|
|
router.post('/axyData', data.axyData); |
|
|
|
|
|
|
@ -26,25 +26,26 @@ module.exports = function (app, router, opts) { |
|
|
|
|
|
|
|
console.log('获取所有站点信息'); |
|
|
|
|
|
|
|
app.fs.api.logAttr['get/water/level/all'] = { content: '获取所有泵站七天内最新集水池液位', visible: true }; |
|
|
|
router.get('/water/level/all', data.getPumpStation); |
|
|
|
// app.fs.api.logAttr['get/water/level/all'] = { content: '获取所有泵站七天内最新集水池液位', visible: true };
|
|
|
|
// router.get('/water/level/all', data.getPumpStation);
|
|
|
|
|
|
|
|
// app.fs.api.logAttr['get/water/level/six'] = { content: '获取泵站6h最新集水池液位', visible: true };
|
|
|
|
// router.get('/water/level/six', data.getPumpStation);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['get/water/level/six'] = { content: '获取泵站6h最新集水池液位', visible: true }; |
|
|
|
router.get('/water/level/six', data.getPumpStation); |
|
|
|
// app.fs.api.logAttr['get/water/pump/state/all'] = { content: '获取水泵状态', visible: true };
|
|
|
|
// router.get('/water/pump/state/all', data.getPumpStation);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['get/water/pump/state/all'] = { content: '获取水泵状态', visible: true }; |
|
|
|
router.get('/water/pump/state/all', data.getPumpStation); |
|
|
|
// app.fs.api.logAttr['get/capacity'] = { content: '获取能耗监测数据', visible: true };
|
|
|
|
// router.get('/capacity', data.getPumpStation);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['get/capacity'] = { content: '获取能耗监测数据', visible: true }; |
|
|
|
router.get('/capacity', data.getPumpStation); |
|
|
|
// app.fs.api.logAttr['get/currentSix'] = { content: '获取水泵数据', visible: true };
|
|
|
|
// router.get('/currentSix', data.getPumpStation);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['get/currentSix'] = { content: '获取水泵数据', visible: true }; |
|
|
|
router.get('/currentSix', data.getPumpStation); |
|
|
|
// app.fs.api.logAttr['get/cabinet'] = { content: '获取进线柜数据', visible: true };
|
|
|
|
// router.get('/cabinet', data.getPumpStation);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['get/cabinet'] = { content: '获取进线柜数据', visible: true }; |
|
|
|
router.get('/cabinet', data.getPumpStation); |
|
|
|
// app.fs.api.logAttr['get/threePhase'] = { content: '获取三相电流数据', visible: true };
|
|
|
|
|
|
|
|
app.fs.api.logAttr['get/threePhase'] = { content: '获取三相电流数据', visible: true }; |
|
|
|
router.get('/threePhase', data.getPumpStation); |
|
|
|
} catch (error) { |
|
|
|
console.log(error.response); |
|
|
|