Fancy
2025-01-24 82721cf9b8c5c1b9527379ef618a1b1fa2a12662
device
1个文件已添加
27 ■■■■■ 已修改文件
pms-parent/pms-web-wechat/src/main/java/com/dy/pmsWechat/device/DeviceCtrl.java 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pms-parent/pms-web-wechat/src/main/java/com/dy/pmsWechat/device/DeviceCtrl.java
New file
@@ -0,0 +1,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);
    }
}