mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-23 12:35:07 +08:00
update 调整相机相关Service结构
This commit is contained in:
@@ -4,13 +4,11 @@ import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.jsowell.common.annotation.Anonymous;
|
||||
import com.jsowell.common.core.controller.BaseController;
|
||||
import com.jsowell.netty.server.mqtt.BootNettyMqttChannelInboundHandler;
|
||||
import com.jsowell.netty.service.camera.CameraBusinessService;
|
||||
import com.jsowell.pile.dto.camera.CameraHeartBeatDTO;
|
||||
import com.jsowell.pile.dto.camera.SendMsg2TopicDTO;
|
||||
import com.jsowell.thirdparty.camera.common.CameraCommonResult;
|
||||
import com.jsowell.thirdparty.camera.service.CameraService;
|
||||
import io.netty.channel.ChannelFuture;
|
||||
import com.jsowell.service.CameraService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@@ -66,7 +64,7 @@ public class CameraController extends BaseController {
|
||||
@PostMapping("/sendMsg2Topic")
|
||||
public void sendMsg2Topic(@RequestBody SendMsg2TopicDTO dto) {
|
||||
try {
|
||||
cameraBusinessService.sendGroundLockCommand(dto.getSn(), dto.getMsgType(), dto.getMsgPrefix(), dto.getTopic(), dto.getMsgData());
|
||||
cameraService.sendMsg2Topic(dto.getSn(), dto.getMsgType(), dto.getMsgPrefix(), dto.getTopic(), dto.getMsgData());
|
||||
} catch (Exception e) {
|
||||
logger.error("发送消息 error, ", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user