调整
This commit is contained in:
parent
08709311bc
commit
20dd2e7211
@ -86,7 +86,7 @@ public class BusDeviceController {
|
||||
}
|
||||
|
||||
@GetMapping("getQrCode")
|
||||
@ApiOperation("查询busDevice")
|
||||
@ApiOperation("设备二维码")
|
||||
@PreAuthorize("@el.check('busDevice:qrCode')")
|
||||
public ResponseEntity<String> getQrCode(BusDeviceQueryCriteria criteria) {
|
||||
String qrCodeUrl = busDeviceService.getQrCode(criteria.getId());
|
||||
|
@ -1,36 +0,0 @@
|
||||
package me.zhengjie.modules.system.rest;
|
||||
|
||||
import org.springframework.messaging.handler.annotation.MessageMapping;
|
||||
import org.springframework.messaging.handler.annotation.SendTo;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
||||
@Controller
|
||||
public class BusDeviceSocketController {
|
||||
|
||||
// 处理客户端发送到/app/send的消息
|
||||
@MessageMapping("/hello") // 接收路径:/app/send
|
||||
@SendTo("/topic/greetings") // 响应路径:/topic/messages
|
||||
public String handleMessage(String message) {
|
||||
System.out.println("Received message: " + message);
|
||||
return "Message received: " + message;
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 订阅设备状态变化的HTTP接口
|
||||
// * @param deviceId 设备ID
|
||||
// */
|
||||
// @PostMapping("/{deviceId}/subscribe")
|
||||
// public void subscribe(@PathVariable String deviceId) {
|
||||
// deviceService.subscribeToDevice(deviceId);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 向设备发送指令的HTTP接口
|
||||
// * @param deviceId 设备ID
|
||||
// * @param command 指令内容
|
||||
// */
|
||||
// @PostMapping("/{deviceId}/command")
|
||||
// public void sendCommand(@PathVariable String deviceId, @RequestBody String command) {
|
||||
// deviceService.sendDeviceCommand(deviceId, command);
|
||||
// }
|
||||
}
|
Loading…
Reference in New Issue
Block a user