package com.ycl.controller.video;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.ycl.api.CommonPage;
|
import com.ycl.api.CommonResult;
|
import com.ycl.entity.video.VideoPoint;
|
import com.ycl.service.video.IVideoInspectionService;
|
import com.ycl.service.video.impl.IVideoPointService;
|
import com.ycl.vo.equipment.VideoPointVo;
|
import io.swagger.annotations.Api;
|
import lombok.AllArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.*;
|
|
/**
|
* 视频巡查控制器
|
*
|
* @author 安瑾然
|
* @date 2022/11/08
|
*/
|
@RestController
|
@RequestMapping("/video_inspection")
|
@Api(tags = "视频巡查")
|
public class VideoInspectionController {
|
|
@Autowired
|
private IVideoInspectionService videoInspectionService;
|
|
|
@GetMapping("page")
|
public CommonResult page(@RequestParam(value = "size", required = false) Long size,
|
@RequestParam(value = "current", required = false) Long current,
|
@RequestParam(value = "type", required = false) Integer type,
|
@RequestParam(value = "regionId", required = false) Integer streetId,
|
@RequestParam(value = "regionId", required = false) Integer communityId) {
|
Page<VideoPointVo> list = videoInspectionService.page(size, current, streetId, communityId, type);
|
return CommonResult.success(CommonPage.restPage(list));
|
}
|
|
|
}
|