添加获取设备实时数据定时任务等
This commit is contained in:
@ -54,6 +54,12 @@
|
||||
<version>3.8.5</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fastbee</groupId>
|
||||
<artifactId>fastbee-device-service</artifactId>
|
||||
<version>3.8.5</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.fastbee</groupId>-->
|
||||
|
@ -0,0 +1,28 @@
|
||||
package com.fastbee.data.controller.media;
|
||||
|
||||
import com.fastbee.common.core.controller.BaseController;
|
||||
import com.fastbee.common.core.domain.AjaxResult;
|
||||
import com.fastbee.device.api.yingshiyun.service.YingshiyunService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/media/yingshiyun")
|
||||
public class YingshiyunVideoController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private YingshiyunService yingshiyunService;
|
||||
|
||||
|
||||
/**
|
||||
* 获取视频播放地址
|
||||
* @param deviceSerial 设备的序列号/编号
|
||||
* @return 视频播放地址
|
||||
*/
|
||||
@GetMapping("/video-playUrl/get")
|
||||
public AjaxResult getVideoUrl(String deviceSerial){
|
||||
return success(yingshiyunService.getVideoPlayUrl(deviceSerial));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user