|
@@ -52,6 +52,7 @@ public class RoomController{
|
|
|
|
|
|
@RequestMapping(value = "/sendImPlayMidiMessage", method = RequestMethod.POST)
|
|
|
public Object sendImPlayMidiMessage(@RequestBody PlayMidiMessageData playMidiMessageData) throws Exception {
|
|
|
+ log.info("sendImPlayMidiMessage: {}",JSONObject.toJSON(playMidiMessageData));
|
|
|
roomService.sendImPlayMidiMessage(playMidiMessageData);
|
|
|
return new BaseResponse<>();
|
|
|
}
|
|
@@ -176,13 +177,14 @@ public class RoomController{
|
|
|
|
|
|
@RequestMapping(value = "adjustExamSong", method = RequestMethod.POST)
|
|
|
public Object adjustExamSong(@RequestBody ExamSongData examSongData) throws Exception {
|
|
|
+ log.info("adjustExamSong: {}",JSONObject.toJSON(examSongData));
|
|
|
roomService.adjustExamSong(examSongData.getRoomId(),examSongData.getStatus(),examSongData.getExamSongId());
|
|
|
return new BaseResponse<>();
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/device/batchControl", method = RequestMethod.POST)
|
|
|
public Object batchControlDevice(@RequestBody ReqDeviceControlData data)throws Exception {
|
|
|
- log.info("batchControl: {}",JSONObject.toJSON(data));
|
|
|
+ log.info("batchControlDevice: {}",JSONObject.toJSON(data));
|
|
|
boolean result = roomService.batchControlDevice(data);
|
|
|
return new BaseResponse<>(result);
|
|
|
}
|
|
@@ -190,6 +192,7 @@ public class RoomController{
|
|
|
@RequestMapping(value = "/device/sync", method = RequestMethod.POST)
|
|
|
public Object syncDeviceState(@RequestBody ReqDeviceControlData data)
|
|
|
throws Exception {
|
|
|
+ log.info("syncDeviceState: {}",JSONObject.toJSON(data));
|
|
|
boolean result;
|
|
|
if (data.getCameraOn() != null) {
|
|
|
result = roomService.syncDeviceState(data.getRoomId(), DeviceTypeEnum.Camera, data.getCameraOn());
|