| | |
| | | import com.ard.common.core.controller.BaseController; |
| | | import com.ard.common.core.domain.AjaxResult; |
| | | import com.ard.common.core.page.TableDataInfo; |
| | | import com.ard.work.domain.dto.BoxHistoryDTO; |
| | | import com.ard.work.domain.dto.BoxPhotosDTO; |
| | | import com.ard.work.domain.dto.BoxSettingsDTO; |
| | | import com.ard.work.domain.receiver.BoxHistoryReceiver; |
| | | import com.ard.work.domain.receiver.BoxPhotosReceiver; |
| | | import com.ard.work.domain.receiver.BoxInfoReceiver; |
| | | import com.ard.work.domain.receiver.BoxStreamUrlReceiver; |
| | | import com.ard.work.domain.dto.*; |
| | | import com.ard.work.domain.dto.telemetry.TelemetryData; |
| | | import com.ard.work.domain.entity.*; |
| | | import com.ard.work.domain.receiver.*; |
| | | import com.ard.work.service.IArdFlightTaskPartService; |
| | | import com.ard.work.service.IArdFlightTaskService; |
| | | import com.ard.work.service.IArdMediaService; |
| | | import com.ard.work.service.ITyService; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiSort; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | import static com.ard.common.utils.PageUtils.startPage; |
| | | import javax.annotation.Resource; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * UavBaseController |
| | |
| | | |
| | | @Resource |
| | | private ITyService tyService; |
| | | @Resource |
| | | private IArdFlightTaskService ardFlightTaskService; |
| | | @Resource |
| | | private IArdFlightTaskPartService ardFlightTaskPartService; |
| | | @Resource |
| | | private IArdMediaService ardMediaService; |
| | | |
| | | @ApiOperation("获取边缘服务器token信息") |
| | | @ApiOperationSupport(order = 1) |
| | |
| | | return AjaxResult.success(boxPhotos); |
| | | } |
| | | |
| | | @ApiOperation("获取任务视频") |
| | | @ApiOperationSupport(order = 5) |
| | | @PostMapping("/getBoxVideos") |
| | | public AjaxResult getBoxVideos(@RequestBody BoxVideosDTO boxVideosDTO) { |
| | | List<BoxVideosReceiver> boxVideos = tyService.getBoxVideos(boxVideosDTO); |
| | | return AjaxResult.success(boxVideos); |
| | | } |
| | | |
| | | @ApiOperation("获取直播地址") |
| | | @ApiOperationSupport(order = 6) |
| | | @GetMapping("/getBoxList/{boxSn}") |
| | | @GetMapping("/getBoxLiveUrl/{boxSn}") |
| | | public AjaxResult getBoxLiveUrl(@PathVariable("boxSn") String boxSn) { |
| | | BoxStreamUrlReceiver boxLiveUrl = tyService.getBoxLiveUrl(boxSn); |
| | | return AjaxResult.success(boxLiveUrl); |