补充注释

This commit is contained in:
shikong 2023-09-08 16:38:39 +08:00
parent 7666446ed8
commit 55de64069b

View File

@ -22,6 +22,8 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader; import org.springframework.web.bind.annotation.RequestHeader;
import java.util.List;
@FeignClient(name = "wvpProxyClient", url = "${proxy.wvp.url}") @FeignClient(name = "wvpProxyClient", url = "${proxy.wvp.url}")
public interface WvpProxyClient { public interface WvpProxyClient {
@GetMapping(value = "/api/user/login", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE) @GetMapping(value = "/api/user/login", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
@ -90,11 +92,17 @@ public interface WvpProxyClient {
@PathVariable String mediaServerId, @PathVariable String mediaServerId,
@SpringQueryMap AddDownloadTaskReq req); @SpringQueryMap AddDownloadTaskReq req);
/**
* 获取视频裁剪合并任务列表
* <p>如果 GetDownloadTaskResp.isEnd = true, 就是已经处理完成, 可以直接用里面的 playUrl / downloadUrl下载</p>
* @param token 认证token
* @param mediaServerId 流媒体服务id, downloadStart/downloadProgress 获得
* @param req GetDownloadTaskReq 请求参数
* @return GetDownloadTaskResp 任务列表
*/
// /record_proxy/your_server_id/api/record/file/download/task/list?app=rtp&stream=59777645&taskId=0490d767d94ce20aedce57c862b6bfe9&isEnd=true // /record_proxy/your_server_id/api/record/file/download/task/list?app=rtp&stream=59777645&taskId=0490d767d94ce20aedce57c862b6bfe9&isEnd=true
@GetMapping("/record_proxy/{mediaServerId}/api/record/file/download/task/list") @GetMapping("/record_proxy/{mediaServerId}/api/record/file/download/task/list")
JsonResponse<GetDownloadTaskResp> getDownloadTask4MediaServer(@RequestHeader("access-token") String token, JsonResponse<List<GetDownloadTaskResp>> getDownloadTask4MediaServer(@RequestHeader("access-token") String token,
@PathVariable String mediaServerId, @PathVariable String mediaServerId,
@SpringQueryMap GetDownloadTaskReq req); @SpringQueryMap GetDownloadTaskReq req);
// /api/gb_record/download/progress/44050100001180000001/44050100001310000001/59777645
} }