MQTT通讯功能联调
This commit is contained in:
@@ -7,6 +7,8 @@ import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.csdevice.enums.DeviceOperate;
|
||||
import com.njcn.web.advice.DeviceLog;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
@@ -37,6 +39,7 @@ public class CsDeviceController extends BaseController {
|
||||
@PostMapping("/register")
|
||||
@ApiOperation("直连设备状态判断")
|
||||
@ApiImplicitParam(name = "nDid", value = "设备识别码", required = true)
|
||||
@DeviceLog(operateType = DeviceOperate.JUDGE_ONLINE)
|
||||
public HttpResult<String> devRegister(@RequestParam String nDid){
|
||||
csDeviceService.devRegister(nDid);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, "设备MQTT通讯状态!");
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.njcn.access.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 系统软件表 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author xuyang
|
||||
* @since 2023-08-09
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/csSoftInfo")
|
||||
public class CsSoftInfoController extends BaseController {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user