‘liusuyi’
2023-10-24 3ed3f6c299eabbda1c161408732d71ecb60b8959
ard-work/src/main/java/com/ruoyi/utils/forest/MediaClient.java
@@ -1,7 +1,6 @@
package com.ruoyi.utils.forest;
import com.dtflys.forest.annotation.*;
import com.dtflys.forest.callback.OnError;
import com.ruoyi.media.domain.Conf;
import com.ruoyi.media.domain.Config;
import com.ruoyi.media.domain.Items;
@@ -13,31 +12,31 @@
 * @Date: 2023年07月06日9:51
 * @Version: 1.0
 **/
@BaseRequest(baseURL = "http://#{mediamtx.host}:9997/v2")
@BaseRequest(baseURL = "http://#{mediamtx.host}:9997/v3")
public interface MediaClient {
    /**
     * 增加路径
     */
    @Post(url = "/config/paths/add/{name}")
    @Post("/config/paths/add/{name}")
    public String addPath(@Var("name") String name, @JSONBody Conf body);
    /**
     * 修改路径
     */
    @Post(url = "/config/paths/edit/{name}", async = true)
    @Patch("/config/paths/patch/{name}")
    public String editPath(@Var("name") String name, @JSONBody Conf body);
    /**
     * 移除路径
     */
    @Post("/config/paths/remove/{name}")
    @Delete("/config/paths/delete/{name}")
    public String removePath(@Var("name") String name);
    /**
     * 获取路径详情
     */
    @Get("/paths/get/{name}")
    public Items getPathInfo(@Var("name") String name);
    @Get(url ="/config/paths/get/{name}")
    public Conf getPathInfo(@Var("name") String name);
    /**
     * 查询所有路径
@@ -50,12 +49,6 @@
     */
    @Get("/rtspsessions/list")
    public String rtspsessions();
    /**
     * 查询所有rtsp连接
     */
    @Get("/rtspconns/list")
    public String rtspconns();
    /**
     * 按sessionId查询rtsp会话