| | |
| | | import com.ard.common.core.domain.RtpServerParam; |
| | | import com.ard.gb28181.api.domain.Device; |
| | | import com.ard.gb28181.api.domain.DeviceChannel; |
| | | import com.ard.gb28181.api.domain.GbChannelDTO; |
| | | import com.ard.gb28181.api.domain.GbDeviceDTO; |
| | | import com.ard.gb28181.api.factory.RemoteGb28181FallbackFactory; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | R<List<Device>> getAllDevices(@RequestHeader(SecurityConstants.FROM_SOURCE) String inner); |
| | | |
| | | /** |
| | | * 根据国标设备ID获取GbDevice |
| | | */ |
| | | @GetMapping("/api/gb28181/getGbDevice/{gbDeviceId}") |
| | | R<GbDeviceDTO> getGbDevice(@PathVariable String gbDeviceId, @RequestHeader(SecurityConstants.FROM_SOURCE) String inner); |
| | | |
| | | /** |
| | | * 获取所有GbDevice列表 |
| | | */ |
| | | @GetMapping("/api/gb28181/getAllGbDevices") |
| | | R<List<GbDeviceDTO>> getAllGbDevices(@RequestHeader(SecurityConstants.FROM_SOURCE) String inner); |
| | | |
| | | /** |
| | | * 根据国标设备ID和通道ID获取GbChannel |
| | | */ |
| | | @GetMapping("/api/gb28181/getGbChannel/{gbDeviceId}/{gbChannelId}") |
| | | R<GbChannelDTO> getGbChannel(@PathVariable String gbDeviceId, @PathVariable String gbChannelId, @RequestHeader(SecurityConstants.FROM_SOURCE) String inner); |
| | | |
| | | /** |
| | | * 根据国标设备ID获取所有通道 |
| | | */ |
| | | @GetMapping("/api/gb28181/getGbChannelsByDeviceId/{gbDeviceId}") |
| | | R<List<GbChannelDTO>> getGbChannelsByDeviceId(@PathVariable String gbDeviceId, @RequestHeader(SecurityConstants.FROM_SOURCE) String inner); |
| | | |
| | | /** |
| | | * 更新GbChannel流状态 |
| | | */ |
| | | @PostMapping("/api/gb28181/updateGbChannelStream") |
| | | R<Boolean> updateGbChannelStream(@RequestBody GbChannelDTO gbChannel, @RequestHeader(SecurityConstants.FROM_SOURCE) String inner); |
| | | |
| | | /** |
| | | * 通用前端控制命令(参考国标文档A.3.1指令格式) |
| | | * |
| | | * @param deviceId 设备国标编号 |