|
|
@@ -5,8 +5,8 @@ import com.github.microservice.models.device.DeviceSyncListParam;
|
|
|
import com.github.microservice.models.device.GateWaySyncParam;
|
|
|
import com.github.microservice.models.hxz.DevicePingInfoParam;
|
|
|
import com.github.microservice.net.ResultContent;
|
|
|
-import com.zhongshu.card.server.core.service.devices.permiss.DevicePermissSendLogService;
|
|
|
import com.zhongshu.card.server.core.service.devices.DeviceSyncFromIotService;
|
|
|
+import com.zhongshu.card.server.core.service.devices.permiss.DevicePermissSendLogService;
|
|
|
import io.swagger.v3.oas.annotations.Hidden;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
@@ -28,36 +28,36 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
public class DeviceSyncController {
|
|
|
|
|
|
@Autowired
|
|
|
- DeviceSyncFromIotService deviceSyncFromIotService;
|
|
|
+ private DeviceSyncFromIotService deviceSyncFromIotService;
|
|
|
|
|
|
@Autowired
|
|
|
private DevicePermissSendLogService devicePermissSendLogService;
|
|
|
|
|
|
- @Operation(summary = "物联网同步设备接口", hidden = true)
|
|
|
+ @Operation(summary = "物联网--同步设备接口", hidden = true)
|
|
|
@RequestMapping(value = "syncDevices", method = {RequestMethod.POST})
|
|
|
public ResultContent syncDevices(@RequestBody DeviceSyncListParam param) {
|
|
|
return deviceSyncFromIotService.syncFromIotDevices(param);
|
|
|
}
|
|
|
|
|
|
- @Operation(summary = "物联网同步设备最近上线时间", hidden = true)
|
|
|
+ @Operation(summary = "物联网--同步设备最近上线时间", hidden = true)
|
|
|
@RequestMapping(value = "lastDeviceOnLineTime", method = {RequestMethod.POST})
|
|
|
public ResultContent lastDeviceOnLineTime(@RequestBody DevicePingInfoParam param) {
|
|
|
return deviceSyncFromIotService.syncDeviceOnLineTime(param);
|
|
|
}
|
|
|
|
|
|
- @Operation(summary = "物联网同步设备在线状态", hidden = true)
|
|
|
+ @Operation(summary = "物联网--同步设备在线状态", hidden = true)
|
|
|
@RequestMapping(value = "syncDeviceOnLineState", method = {RequestMethod.POST})
|
|
|
public ResultContent syncDeviceOnLineState(@RequestBody DevicePingInfoParam param) {
|
|
|
return deviceSyncFromIotService.syncDeviceOnLineState(param);
|
|
|
}
|
|
|
|
|
|
- @Operation(summary = "物联网同步网关接口", hidden = true)
|
|
|
+ @Operation(summary = "物联网--同步网关接口", hidden = true)
|
|
|
@RequestMapping(value = "syncGateWays", method = {RequestMethod.POST})
|
|
|
public ResultContent syncGateWays(@RequestBody GateWaySyncParam param) {
|
|
|
return deviceSyncFromIotService.syncGateWays(param);
|
|
|
}
|
|
|
|
|
|
- @Operation(summary = "设备权限下发的响应")
|
|
|
+ @Operation(summary = "物联网--设备权限下发的响应")
|
|
|
@RequestMapping(value = "markSendResponse", method = {RequestMethod.POST})
|
|
|
public ResultContent markSendResponse(@RequestBody DevicePermissSendResponseParam param) {
|
|
|
return devicePermissSendLogService.markSendResponse(param);
|