Fancy
2025-01-24 82721cf9b8c5c1b9527379ef618a1b1fa2a12662
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
package com.dy.pmsWechat.device;
 
import com.dy.common.webUtil.BaseResponse;
import com.dy.common.webUtil.BaseResponseUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.Map;
@Slf4j
@RestController
@RequestMapping(path="device")
public class DeviceCtrl {
    private DeviceSv sv;
    @Autowired
    public void setSv(DeviceSv sv){
        this.sv = sv;
    }
    @GetMapping(path = "getDeviceInfo")
    public BaseResponse<Map<String, Object>> getDeviceInfo(String deviceNo) {
        log.info("DeviceCtrl.getDeviceInfo():{}",deviceNo);
        Map<String, Object> result = sv.getDeviceInfo(deviceNo);
        return BaseResponseUtils.buildSuccess(result);
    }
}