| | |
| | | import com.sinata.system.domain.query.MwMonitorDeviceQuery; |
| | | import com.sinata.system.domain.vo.MwMonitorDeviceVO; |
| | | import com.sinata.system.service.MwMonitorDeviceService; |
| | | import com.sinata.system.service.biz.MonitorDeviceApiNewService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RequestMapping("/backend/mwMonitorDevice") |
| | | public class MwMonitorDeviceController { |
| | | private final MwMonitorDeviceService mwMonitorDeviceService; |
| | | private final MonitorDeviceApiNewService monitorDeviceApiNewService; |
| | | |
| | | /** |
| | | * 监控设备分页列表 |
| | |
| | | mwMonitorDeviceService.removeById(id); |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 实时监控列表 |
| | | * |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @ApiOperation("实时监控列表") |
| | | @PostMapping("/monitor/page") |
| | | public R<PageDTO<MwMonitorDeviceVO>> monitorPageList(@Valid @RequestBody MwMonitorDeviceQuery query) { |
| | | return R.ok(mwMonitorDeviceService.pageMonitorPage(query)); |
| | | } |
| | | |
| | | /** |
| | | * 获取视频服务器设备播放路径 |
| | | * |
| | | * @param id |
| | | * @param channelNum |
| | | * @return |
| | | */ |
| | | @ApiOperation("获取视频服务器设备播放路径") |
| | | @GetMapping("/getDeviceUrl") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "deviceNumber", value = "设备编号"), |
| | | @ApiImplicitParam(name = "channelNum", value = "通道号") |
| | | }) |
| | | public R<Map<String, Object>> getDeviceUrl(String deviceNumber, Integer channelNum) { |
| | | return R.ok(monitorDeviceApiNewService.getDeviceUrl(deviceNumber, channelNum)); |
| | | } |
| | | } |