package com.whyc.controller; import com.whyc.dto.Response; import com.whyc.pojo.web_site.DeviceSpareLog; import com.whyc.service.DeviceSpareLogService; 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; import java.util.List; @RestController @RequestMapping("deviceSpareLog") @Api(tags = "设备器件备件变更日志") public class DeviceSpareLogController { @Autowired private DeviceSpareLogService service; @GetMapping("getList") @ApiOperation(value = "查询变更日志") public Response> getList(@RequestParam int deviceSpareId){ return service.getList(deviceSpareId); } }