liusuyi
2026-06-01 3496700a5ba18be8ca0590a79e21a867782d1ea9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
package com.ard.zlm.mapper;
 
import com.ard.zlm.api.domain.ZlmMediaServer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
 
import java.util.List;
 
/**
 * 媒体服务器Mapper接口
 *
 * @FileName MediaServerMapper
 * @Description
 * @Author fengcheng
 * @date 2026-03-31
 **/
@Mapper
@Repository
public interface MediaServerMapper {
 
    /**
     * 获取默认的媒体服务器
     *
     * @return
     */
    ZlmMediaServer queryDefault(String serverId);
 
    /**
     * 根据id和serverId查询
     *
     * @param id
     * @param serverId
     * @return
     */
    ZlmMediaServer queryOne(@Param("id") String id, @Param("serverId") String serverId);
 
    /**
     * 添加媒体服务器
     *
     * @param zlmMediaServer
     * @return
     */
    int add(ZlmMediaServer zlmMediaServer);
 
    /**
     * 修改媒体服务器
     *
     * @param zlmMediaServer
     * @return
     */
    int update(ZlmMediaServer zlmMediaServer);
 
    /**
     * 删除媒体服务器
     *
     * @param id
     * @param serverId
     */
    void delOne(@Param("id") String id, @Param("serverId") String serverId);
 
    /**
     * 查询所有媒体服务器
     *
     * @param serverId
     * @return
     */
    List<ZlmMediaServer> queryAll(String serverId);
 
    /**
     * 从数据库中获取指定id的媒体服务器
     *
     * @param id
     * @return
     */
    ZlmMediaServer getOne(String id);
 
    /**
     * 获取所有在线的媒体服务器
     *
     * @return
     */
    List<ZlmMediaServer> getAllOnlineMediaServe();
 
    /**
     * 根据ip和端口查询
     *
     * @param ip
     * @param port
     * @param serverId
     * @return
     */
    ZlmMediaServer queryOneByHostAndPort(@Param("ip") String ip,@Param("port") int port,@Param("serverId") String serverId);
}