| | |
| | | import com.iailab.module.data.channel.modbus.service.ChannelModbusDeviceService; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | | |
| | | import com.iailab.module.data.channel.modbus.vo.ModBusDeviceRespVO; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.UUID; |
| | |
| | | * @param reqVO |
| | | */ |
| | | @GetMapping("/page") |
| | | public CommonResult<PageResult<ModBusDeviceRespVO>> list(@Valid ModBusDevicePageReqVO reqVO) { |
| | | public CommonResult<PageResult<ModBusDeviceRespVO>> list(@Validated ModBusDevicePageReqVO reqVO) { |
| | | PageResult<ChannelModBusDeviceEntity> page = channelModbusDeviceService.queryPage(reqVO); |
| | | |
| | | return success(BeanUtils.toBean(page, ModBusDeviceRespVO.class)); |