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> getDeviceInfo(String deviceNo) { log.info("DeviceCtrl.getDeviceInfo():{}",deviceNo); Map result = sv.getDeviceInfo(deviceNo); return BaseResponseUtils.buildSuccess(result); } }