|
|
package com.yoho.ufo.order.controller;
|
|
|
|
|
|
import com.yoho.order.model.BuyerOrderReq;
|
|
|
import com.yoho.order.model.QiniuLiveRecord;
|
|
|
import com.yoho.ufo.exception.PlatformException;
|
|
|
import com.yoho.ufo.order.service.impl.AsynVideoLiveService;
|
|
|
import com.yoho.ufo.order.service.impl.UfoLiveService;
|
...
|
...
|
@@ -141,4 +142,22 @@ public class UfoLiveController { |
|
|
|
|
|
return new ApiResponse.ApiResponseBuilder().code(result > 0 ? 200 : 400).message(result > 0 ? "更新成功" : "更新失败").build();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 薛超使用的查询系统中当前时间段的录制视频的任务
|
|
|
* 包含StartTime 不含EndTime
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/queryVideoInfo")
|
|
|
public ApiResponse queryVideoInfo(QNliveReq req) {
|
|
|
LOGGER.info("queryVideoInfo method in. req is {}", req);
|
|
|
|
|
|
if (null == req.getStartTime() || null == req.getEndTime() || req.getEndTime() - req.getStartTime() > 86400) {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message("时间格式不对").build();
|
|
|
}
|
|
|
|
|
|
List<QiniuLiveRecord> result = ufoLiveService.queryVideoInfo(req.getStartTime(), req.getEndTime());
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(result).build();
|
|
|
}
|
|
|
} |
...
|
...
|
|