31 lines
1.2 KiB
Java
31 lines
1.2 KiB
Java
|
|
package com.whdc.zhdbaqapi.controller;
|
||
|
|
|
||
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||
|
|
import com.whdc.zhdbaqapi.mapper.DeviceRobotDataMapper;
|
||
|
|
import com.whdc.zhdbaqapi.model.dto.FindPageDto;
|
||
|
|
import com.whdc.zhdbaqapi.model.entity.DeviceGNSSData;
|
||
|
|
import com.whdc.zhdbaqapi.utils.ResultJson;
|
||
|
|
import io.swagger.annotations.Api;
|
||
|
|
import io.swagger.annotations.ApiOperation;
|
||
|
|
import lombok.extern.slf4j.Slf4j;
|
||
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
||
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
|
||
|
|
@Api(tags = "GNSS设备信息 - Controller")
|
||
|
|
@RestController
|
||
|
|
@RequestMapping("/v1/deviceRobotData")
|
||
|
|
@Slf4j
|
||
|
|
public class DeviceRobotDataController {
|
||
|
|
@Autowired
|
||
|
|
private DeviceRobotDataMapper deviceRobotDataMapper;
|
||
|
|
|
||
|
|
@ApiOperation(value = "分页查询")
|
||
|
|
@PostMapping(value = "/page")
|
||
|
|
public ResultJson<IPage<DeviceGNSSData>> page(@RequestBody FindPageDto findDto) {
|
||
|
|
return ResultJson.ok(deviceRobotDataMapper.page(findDto.getPage()));
|
||
|
|
}
|
||
|
|
}
|