package com.whyc.controller; import com.whyc.dto.Response; import com.whyc.pojo.AFEInverterControl; import com.whyc.pojo.TorqueSensor; import com.whyc.service.AFECtrlService; import com.whyc.service.TorqueSensorService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; 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.RequestParam; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("torqueSensor") @Api(tags = "扭矩传感器") public class TorqueSensorController { @Autowired private TorqueSensorService service; @GetMapping @ApiOperation(value = "查询信息-根据设备id") public Response getByDevId(@RequestParam Integer devId){ return service.getByDevId(devId); } }