|
@@ -1,164 +0,0 @@
|
|
|
-package com.sooka.sponest.middleground.remoteapi.service.center.monitor;
|
|
|
-
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
-import com.ruoyi.common.core.domain.R;
|
|
|
-import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
-import com.ruoyi.system.api.domain.SysFile;
|
|
|
-import com.ruoyi.system.api.domain.SysUser;
|
|
|
-import com.sooka.sponest.middleground.remoteapi.fallback.center.monitor.RemoteMonitorBaseServiceFallbackFactory;
|
|
|
-import com.sooka.sponest.middleground.remoteapi.fallback.center.system.RemoteSystemBaseServiceFallbackFactory;
|
|
|
-import com.sooka.sponest.middleground.remoteapi.service.ModulesServiceNameContants;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
-import org.springframework.cloud.openfeign.FeignClient;
|
|
|
-import org.springframework.http.MediaType;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.multipart.MultipartFile;
|
|
|
-
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
-@FeignClient(
|
|
|
- contextId = "remoteMonitorService"
|
|
|
- ,value = ModulesServiceNameContants.MONITOR_SERVICE
|
|
|
- ,fallbackFactory = RemoteMonitorBaseServiceFallbackFactory.class
|
|
|
- ,url = "${sooka.service.monitor}"
|
|
|
-)
|
|
|
-public interface RemoteMonitorService {
|
|
|
- /**
|
|
|
- * 【水流速推送】向监控中心推送水流速采集数据
|
|
|
- * @param json
|
|
|
- * @return AjaxResult
|
|
|
- * @author limeng
|
|
|
- * @date 2023/7/31 16:27
|
|
|
- **/
|
|
|
- @PostMapping("/device/saveWaterMonitoringData")
|
|
|
- public AjaxResult saveWaterMonitoringData(@RequestBody JSONObject json);
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 【水压】接收城安盛邦 水压传感器数据方法
|
|
|
- * */
|
|
|
- @PostMapping("/device/saveWaterPressureDeviceData")
|
|
|
- public AjaxResult saveWaterPressureDeviceData(@RequestBody JSONObject json);
|
|
|
-
|
|
|
- /**
|
|
|
- * 【物联网】接收精讯传感器:大气、水质、土壤墒情数据通用方法
|
|
|
- * */
|
|
|
- @ApiOperation(value = "接收精讯传感器数据通用方法", notes = "接收精讯传感器数据通用方法")
|
|
|
- @PostMapping("/device/saveSennorDeviceData")
|
|
|
- public AjaxResult saveSennorDeviceData(@RequestBody JSONObject json);
|
|
|
-
|
|
|
- /**
|
|
|
- * 【水流速】根据设备类型查询监控设备Map
|
|
|
- * */
|
|
|
- @ApiOperation(value = "接收传感器水质数据", notes = "接收传感器水质数据")
|
|
|
- @PostMapping("/device/getDevideCodeMapByTypes")
|
|
|
- public AjaxResult getDevideCodeMapByTypes(@RequestBody String types);
|
|
|
-
|
|
|
- /**
|
|
|
- * 【病虫害】接收病虫害传感器数据方法
|
|
|
- * */
|
|
|
- @ApiOperation(value = "接收病虫害传感器数据", notes = "接收病虫害传感器数据")
|
|
|
- @PostMapping("/device/saveInsectPestsDeviceData")
|
|
|
- public AjaxResult saveInsectPestsDeviceData(@RequestBody JSONObject json);
|
|
|
-
|
|
|
- /**
|
|
|
- * 病虫害文件上传
|
|
|
- */
|
|
|
- @PostMapping (value = "/centerMonitorFeign/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
|
|
- public R<SysFile> upload(MultipartFile file);
|
|
|
-
|
|
|
- /**
|
|
|
- * 对接大华黑天云台日志定时任务
|
|
|
- * */
|
|
|
- @ApiOperation(value = "对接大华黑天云台日志定时任务", notes = "对接大华黑天云台日志定时任务")
|
|
|
- @PostMapping("/dahuaOperateLog/configureBlackTasks")
|
|
|
- public AjaxResult configureBlackTasks();
|
|
|
-
|
|
|
- /**
|
|
|
- * 对接大华白天云台日志定时任务
|
|
|
- * */
|
|
|
- @ApiOperation(value = "对接大华白天云台日志定时任务", notes = "对接大华白天云台日志定时任务")
|
|
|
- @PostMapping("/dahuaOperateLog/configureWhiteTasks")
|
|
|
- public AjaxResult configureWhiteTasks();
|
|
|
-
|
|
|
- /**
|
|
|
- * 对接定位设备车辆gps定时任务
|
|
|
- * */
|
|
|
- @ApiOperation(value = "对接定位设备车辆gps定时任务", notes = "对接定位设备车辆gps定时任务")
|
|
|
- @GetMapping("/gps/gasTank/queryTracks")
|
|
|
- public AjaxResult configureGpsTank();
|
|
|
-
|
|
|
- /**
|
|
|
- * 获取最新一次行动轨迹时间的设备id列表
|
|
|
- * */
|
|
|
- @ApiOperation(value = "获取最新一次行动轨迹时间的设备id列表", notes = "获取最新一次行动轨迹时间的设备id列表")
|
|
|
- @GetMapping("/gps/devices/selectGasTankDevicesNewEndTime")
|
|
|
- public AjaxResult selectGasTankDevicesNewEndTime();
|
|
|
-
|
|
|
- /**
|
|
|
- * 新增北斗卫星定位车辆gps历史轨迹
|
|
|
- * */
|
|
|
- @ApiOperation(value = "新增北斗卫星定位车辆gps历史轨迹", notes = "新增北斗卫星定位车辆gps历史轨迹")
|
|
|
- @PostMapping("/gps/trajectory/remoteInsertBatch")
|
|
|
- public AjaxResult remoteTrajectoryInsertBatch(@RequestBody JSONObject obj);
|
|
|
-
|
|
|
- /**
|
|
|
- * 新增北斗卫星定位车辆gps历史行程
|
|
|
- * */
|
|
|
- @ApiOperation(value = "新增北斗卫星定位车辆gps历史行程", notes = "新增北斗卫星定位车辆gps历史行程")
|
|
|
- @PostMapping("/gps/mileage/remoteInsertBatch")
|
|
|
- public AjaxResult remoteMileageInsertBatch(@RequestBody JSONObject obj);
|
|
|
-
|
|
|
- /**
|
|
|
- * 新增煤气罐设备信息
|
|
|
- * */
|
|
|
- @ApiOperation(value = "新增煤气罐设备信息", notes = "新增煤气罐设备信息")
|
|
|
- @PostMapping("/gps/devices/gpsTankInsertBatch")
|
|
|
- public AjaxResult gpsTankInsertBatch(@RequestBody JSONObject obj);
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 对接大华根据组织获取执法记录仪、单兵设备在线状态定时任务
|
|
|
- * */
|
|
|
- @ApiOperation(value = "对接大华根据组织获取执法记录仪、单兵设备在线状态定时任务", notes = "对接大华根据组织获取执法记录仪、单兵设备在线状态定时任务")
|
|
|
- @GetMapping("/equipmentStatus/quartz/getLongPollingPositionMsg")
|
|
|
- public AjaxResult getLongPollingPositionMsg();
|
|
|
-
|
|
|
- /**
|
|
|
- * 传感器设备定时任务
|
|
|
- * */
|
|
|
- @ApiOperation(value = "传感器设备定时任务", notes = "传感器设备定时任务")
|
|
|
- @GetMapping("/device/quartz/updateDeviceStatusQuartz")
|
|
|
- public AjaxResult updateDeviceStatusQuartz();
|
|
|
-
|
|
|
- /**
|
|
|
- * 监控中心首页-离线设备日折线图缓存
|
|
|
- * */
|
|
|
- @ApiOperation(value = "监控中心首页-离线设备日折线图缓存", notes = "监控中心首页-离线设备日折线图缓存")
|
|
|
- @GetMapping("/camera/quartz/selectDayLineChartCountTask")
|
|
|
- public AjaxResult selectDayLineChartCountTask();
|
|
|
-
|
|
|
- /**
|
|
|
- * 监控中心首页-离线设备月折线图缓存
|
|
|
- * */
|
|
|
- @ApiOperation(value = "监控中心首页-离线设备月折线图缓存", notes = "监控中心首页-离线设备月折线图缓存")
|
|
|
- @GetMapping("/camera/quartz/selectMonthlyLineChartCountTask")
|
|
|
- public AjaxResult selectMonthlyLineChartCountTask();
|
|
|
-
|
|
|
- /**
|
|
|
- * 监控中心首页-离线设备季度折线图缓存
|
|
|
- * */
|
|
|
- @ApiOperation(value = "监控中心首页-离线设备季度折线图缓存", notes = "监控中心首页-离线设备季度折线图缓存")
|
|
|
- @GetMapping("/camera/quartz/quarterlineChartTask")
|
|
|
- public AjaxResult quarterlineChartTask();
|
|
|
-
|
|
|
- /**
|
|
|
- * 监控中心首页-离线设备年折线图缓存
|
|
|
- * */
|
|
|
- @ApiOperation(value = "监控中心首页-离线设备年折线图缓存", notes = "监控中心首页-离线设备年折线图缓存")
|
|
|
- @GetMapping("/camera/quartz/yearlineChartTask")
|
|
|
- public AjaxResult yearlineChartTask();
|
|
|
-
|
|
|
-}
|