zuoxiao
3 天以前 39688299c37a4afc68afb705127948bf1e5e7e7f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.dy.pipIrrRemote.monitor.mqttSd1.fault;
 
import com.alibaba.fastjson2.JSONObject;
import com.dy.common.util.Callback;
import com.dy.pipIrrRemote.common.dto.DtoBase;
import com.dy.pipIrrRemote.monitor.common.ComCtrl;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * @Author: liurunyu
 * @Date: 2025/6/16 17:35
 * @Description
 */
 
@Slf4j
@Tag(name = "远程命令", description = "查询设备终端实时值")
@RestController("p202404V201Cd5BCtrl")
@RequestMapping(path = "p202404V201/cd5B")
@RequiredArgsConstructor
@Scope("prototype") //因为有对象类属性,所以采用原型模式,每次请求新建一个实例对象
public class CdStartCtrl extends ComCtrl {
 
    private static final String RtuSuccessMsg = "控制器接收并执行命令成功,无返回数据";
 
    private static final String ComCode = "5B" ;
 
    @Autowired
    private CdSv sv ;
 
    @Override
    protected String checkDto(DtoBase dto) {
        return null;
    }
 
    @Override
    protected String dealComResult(String code, JSONObject resultData, Callback callback) {
        return null;
    }
}