|
@@ -2,13 +2,13 @@ package com.zhongshu.iot.server.core.controller.devices;
|
|
|
|
|
|
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
|
import com.github.microservice.auth.security.type.AuthType;
|
|
import com.github.microservice.auth.security.type.AuthType;
|
|
|
|
|
+import com.github.microservice.net.ResultContent;
|
|
|
import com.zhongshu.iot.client.model.artemis.OperationMessageModel;
|
|
import com.zhongshu.iot.client.model.artemis.OperationMessageModel;
|
|
|
import com.zhongshu.iot.client.model.artemis.OperationMessageResultModel;
|
|
import com.zhongshu.iot.client.model.artemis.OperationMessageResultModel;
|
|
|
import com.zhongshu.iot.client.model.artemis.OperationMessageResultSearch;
|
|
import com.zhongshu.iot.client.model.artemis.OperationMessageResultSearch;
|
|
|
import com.zhongshu.iot.client.model.artemis.OperationMessageSearchParam;
|
|
import com.zhongshu.iot.client.model.artemis.OperationMessageSearchParam;
|
|
|
import com.zhongshu.iot.server.core.service.artemis.OperationMessageService;
|
|
import com.zhongshu.iot.server.core.service.artemis.OperationMessageService;
|
|
|
import com.zhongshu.iot.server.core.service.device.DeviceInfoService;
|
|
import com.zhongshu.iot.server.core.service.device.DeviceInfoService;
|
|
|
-import com.github.microservice.net.ResultContent;
|
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.Parameter;
|
|
import io.swagger.v3.oas.annotations.Parameter;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
@@ -41,7 +41,7 @@ public class OperationMessageController {
|
|
|
OperationMessageService operationMessageService;
|
|
OperationMessageService operationMessageService;
|
|
|
|
|
|
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
|
- @Operation(summary = "标准指令已响应")
|
|
|
|
|
|
|
+ @Operation(summary = "标记指令已响应")
|
|
|
@RequestMapping(value = "receiveMessage", method = {RequestMethod.GET})
|
|
@RequestMapping(value = "receiveMessage", method = {RequestMethod.GET})
|
|
|
@Parameter(name = "messageId", description = "指令ID")
|
|
@Parameter(name = "messageId", description = "指令ID")
|
|
|
public ResultContent receiveMessage(String messageId) {
|
|
public ResultContent receiveMessage(String messageId) {
|
|
@@ -55,6 +55,8 @@ public class OperationMessageController {
|
|
|
return operationMessageService.page(pageable, param);
|
|
return operationMessageService.page(pageable, param);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ //------------------------------------具体的发送消息 start-------------------
|
|
|
|
|
+
|
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "日志列表-分页查询")
|
|
@Operation(summary = "日志列表-分页查询")
|
|
|
@RequestMapping(value = {"pageMessage"}, method = {RequestMethod.POST})
|
|
@RequestMapping(value = {"pageMessage"}, method = {RequestMethod.POST})
|
|
@@ -65,7 +67,7 @@ public class OperationMessageController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
|
- @Operation(summary = "得到设备日志详情")
|
|
|
|
|
|
|
+ @Operation(summary = "得到消息详情")
|
|
|
@RequestMapping(value = "getMessageById", method = {RequestMethod.GET})
|
|
@RequestMapping(value = "getMessageById", method = {RequestMethod.GET})
|
|
|
public ResultContent<OperationMessageResultModel> getMessageById(
|
|
public ResultContent<OperationMessageResultModel> getMessageById(
|
|
|
@Parameter(name = "id", description = "数据ID", example = "")
|
|
@Parameter(name = "id", description = "数据ID", example = "")
|