|
|
@ -25,6 +25,7 @@ import io.swagger.annotations.ApiParam; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
|
|
|
|
import org.springblade.core.log.annotation.ApiLog; |
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
@ -68,6 +69,7 @@ public class StationVideoTypeController extends BladeController { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 分页 代码自定义代号 |
|
|
|
* 分页 代码自定义代号 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@ApiLog |
|
|
|
@RequestMapping(value = "/list", method = {RequestMethod.GET, RequestMethod.POST}) |
|
|
|
@RequestMapping(value = "/list", method = {RequestMethod.GET, RequestMethod.POST}) |
|
|
|
@ApiOperationSupport(order = 10) |
|
|
|
@ApiOperationSupport(order = 10) |
|
|
|
@ApiOperation(value = "分页", notes = "传入stationVideoType") |
|
|
|
@ApiOperation(value = "分页", notes = "传入stationVideoType") |
|
|
@ -132,6 +134,7 @@ public class StationVideoTypeController extends BladeController { |
|
|
|
return R.status(stationVideoTypeService.deleteLogic(Func.toLongList(ids))); |
|
|
|
return R.status(stationVideoTypeService.deleteLogic(Func.toLongList(ids))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiLog |
|
|
|
@RequestMapping(value = "/getVideoMonitor", method = {RequestMethod.GET, RequestMethod.POST}) |
|
|
|
@RequestMapping(value = "/getVideoMonitor", method = {RequestMethod.GET, RequestMethod.POST}) |
|
|
|
@ApiOperationSupport(order = 50) |
|
|
|
@ApiOperationSupport(order = 50) |
|
|
|
@ApiOperation(value = "获取视频监测列表", notes = "获取视频监测列表") |
|
|
|
@ApiOperation(value = "获取视频监测列表", notes = "获取视频监测列表") |
|
|
@ -140,65 +143,66 @@ public class StationVideoTypeController extends BladeController { |
|
|
|
return R.data(result); |
|
|
|
return R.data(result); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiLog |
|
|
|
@RequestMapping(value = "/getById", method = {RequestMethod.GET, RequestMethod.POST}) |
|
|
|
@RequestMapping(value = "/getById", method = {RequestMethod.GET, RequestMethod.POST}) |
|
|
|
@ApiOperationSupport(order = 60) |
|
|
|
@ApiOperationSupport(order = 60) |
|
|
|
@ApiOperation(value = "获取视频监测对象", notes = "获取视频监测对象") |
|
|
|
@ApiOperation(value = "获取视频监测对象", notes = "获取视频监测对象") |
|
|
|
public R<StationVideoTypeEntity> getById(@RequestParam Long id,@RequestParam int streamType){ |
|
|
|
public R<StationVideoTypeEntity> getById(@RequestParam Long id,@RequestParam int streamType){ |
|
|
|
return R.data(stationVideoTypeService.getById(id,streamType)); |
|
|
|
return R.data(stationVideoTypeService.getById(id,streamType)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ApiLog |
|
|
|
@RequestMapping(value = "/getHikVideo", method = {RequestMethod.GET, RequestMethod.POST}) |
|
|
|
@RequestMapping(value = "/getHikVideo", method = {RequestMethod.GET, RequestMethod.POST}) |
|
|
|
public R<String> getHikVideo(){ |
|
|
|
public R<String> getHikVideo(){ |
|
|
|
return R.data(stationVideoTypeService.getHikVideo()); |
|
|
|
return R.data(stationVideoTypeService.getHikVideo()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ApiLog |
|
|
|
@RequestMapping(value = "/getStationsByVideo", method = {RequestMethod.GET, RequestMethod.POST}) |
|
|
|
@RequestMapping(value = "/getStationsByVideo", method = {RequestMethod.GET, RequestMethod.POST}) |
|
|
|
@ApiOperationSupport(order = 70) |
|
|
|
@ApiOperationSupport(order = 70) |
|
|
|
@ApiOperation(value = "获取视频对应站点", notes = "获取视频对应站点") |
|
|
|
@ApiOperation(value = "获取视频对应站点", notes = "获取视频对应站点") |
|
|
|
public R<List<StationEntity>> getStationsByVideo() { |
|
|
|
public R<List<StationEntity>> getStationsByVideo() { |
|
|
|
return R.data(stationVideoTypeService.getStationsByVideo()); |
|
|
|
return R.data(stationVideoTypeService.getStationsByVideo()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ApiLog |
|
|
|
@GetMapping("/getStationVideoOrderBySort") |
|
|
|
@GetMapping("/getStationVideoOrderBySort") |
|
|
|
@ApiOperationSupport(order = 80) |
|
|
|
@ApiOperationSupport(order = 80) |
|
|
|
@ApiOperation(value = "根据站点、视频排序获取视频列表", notes = "根据站点、视频排序获取视频列表") |
|
|
|
@ApiOperation(value = "根据站点、视频排序获取视频列表", notes = "根据站点、视频排序获取视频列表") |
|
|
|
public R<IPage> getStationVideoOrderBySort(StationVideoTypeDTO stationVideoTypeDTO,Query query) { |
|
|
|
public R<IPage> getStationVideoOrderBySort(StationVideoTypeDTO stationVideoTypeDTO,Query query) { |
|
|
|
return R.data(stationVideoTypeService.getStationVideoOrderBySort(stationVideoTypeDTO,query)); |
|
|
|
return R.data(stationVideoTypeService.getStationVideoOrderBySort(stationVideoTypeDTO,query)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ApiLog |
|
|
|
@RequestMapping(value = "/getVideoByIdsAndType", method = {RequestMethod.GET, RequestMethod.POST}) |
|
|
|
@RequestMapping(value = "/getVideoByIdsAndType", method = {RequestMethod.GET, RequestMethod.POST}) |
|
|
|
@ApiOperationSupport(order = 90) |
|
|
|
@ApiOperationSupport(order = 90) |
|
|
|
@ApiOperation(value = "根据视频ID、视频流类型获取视频地址", notes = "根据视频ID、视频流类型获取视频地址") |
|
|
|
@ApiOperation(value = "根据视频ID、视频流类型获取视频地址", notes = "根据视频ID、视频流类型获取视频地址") |
|
|
|
public R<List<StationVideoTypeEntity>> getVideoByIdsAndType(@RequestParam String ids, @RequestParam String type) { |
|
|
|
public R<List<StationVideoTypeEntity>> getVideoByIdsAndType(@RequestParam String ids, @RequestParam String type) { |
|
|
|
return R.data(stationVideoTypeService.getVideoByIdsAndType(ids,type)); |
|
|
|
return R.data(stationVideoTypeService.getVideoByIdsAndType(ids,type)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ApiLog |
|
|
|
@GetMapping("/getVideoByIds") |
|
|
|
@GetMapping("/getVideoByIds") |
|
|
|
@ApiOperationSupport(order = 100) |
|
|
|
@ApiOperationSupport(order = 100) |
|
|
|
@ApiOperation(value = "根据视频ID获取视频地址", notes = "根据视频ID获取视频地址") |
|
|
|
@ApiOperation(value = "根据视频ID获取视频地址", notes = "根据视频ID获取视频地址") |
|
|
|
public R<List<StationVideoTypeEntity>> getVideoByIds(@RequestParam String ids,@RequestParam String randomCode) { |
|
|
|
public R<List<StationVideoTypeEntity>> getVideoByIds(@RequestParam String ids,@RequestParam String randomCode) { |
|
|
|
return R.data(stationVideoTypeService.getVideoByIds(ids,randomCode)); |
|
|
|
return R.data(stationVideoTypeService.getVideoByIds(ids,randomCode)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ApiLog |
|
|
|
@RequestMapping(value = "/getVideoReviewerToken",method = {RequestMethod.GET, RequestMethod.POST}) |
|
|
|
@RequestMapping(value = "/getVideoReviewerToken",method = {RequestMethod.GET, RequestMethod.POST}) |
|
|
|
public R<String> getVideoReviewerToken() { |
|
|
|
public R<String> getVideoReviewerToken() { |
|
|
|
return R.data(stationVideoTypeService.getVideoReviewerToken()); |
|
|
|
return R.data(stationVideoTypeService.getVideoReviewerToken()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ApiLog |
|
|
|
@GetMapping("/getVideoMonitorByAgency") |
|
|
|
@GetMapping("/getVideoMonitorByAgency") |
|
|
|
@ApiOperationSupport(order = 110) |
|
|
|
@ApiOperationSupport(order = 110) |
|
|
|
@ApiOperation(value = "获取云服务站点(清污机类型)视频", notes = "根获取代运维站点(清污机类型)视频") |
|
|
|
@ApiOperation(value = "获取云服务站点(清污机类型)视频", notes = "根获取代运维站点(清污机类型)视频") |
|
|
|
public R<List<VideoMonitorVO>> getVideoMonitorByAgency(@RequestParam @ApiParam("视频分类") String type) { |
|
|
|
public R<List<VideoMonitorVO>> getVideoMonitorByAgency(@RequestParam @ApiParam("视频分类") String type) { |
|
|
|
return R.data(stationVideoTypeService.getVideoMonitor(type)); |
|
|
|
return R.data(stationVideoTypeService.getVideoMonitor(type)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ApiLog |
|
|
|
@GetMapping("/getHikVisionStations") |
|
|
|
@GetMapping("/getHikVisionStations") |
|
|
|
@ApiOperationSupport(order = 120) |
|
|
|
@ApiOperationSupport(order = 120) |
|
|
|
@ApiOperation(value = "获取海康视频区域列表", notes = "获取海康视频区域列表") |
|
|
|
@ApiOperation(value = "获取海康视频区域列表", notes = "获取海康视频区域列表") |
|
|
|
public R<List<JSONObject>> getHikVisionStations() { |
|
|
|
public R<List<JSONObject>> getHikVisionStations() { |
|
|
|
return R.data(stationVideoTypeService.getHikVisionStations()); |
|
|
|
return R.data(stationVideoTypeService.getHikVisionStations()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ApiLog |
|
|
|
@GetMapping("/getMonitorsByStation") |
|
|
|
@GetMapping("/getMonitorsByStation") |
|
|
|
@ApiOperationSupport(order = 130) |
|
|
|
@ApiOperationSupport(order = 130) |
|
|
|
@ApiOperation(value = "获取海康威视站点下的检测点", notes = "获取海康威视站点下的检测点") |
|
|
|
@ApiOperation(value = "获取海康威视站点下的检测点", notes = "获取海康威视站点下的检测点") |
|
|
|