riku
2022-06-17 fd8c31dc5a0c0372d867335283f0b5272d667236
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
package cn.flightfeather.supervision.lightshare.repository
 
import cn.flightfeather.supervision.domain.entity.MeetingInfo
import cn.flightfeather.supervision.domain.entity.Participant
import cn.flightfeather.supervision.domain.entity.VMRoom
import cn.flightfeather.supervision.lightshare.vo.MeetingUserOnlineStatusVo
 
/**
 * @author riku
 * Date: 2019/12/19
 */
interface MeetingParticipantRepository {
 
    //删除会议时, 同时删除所有参会人员
    fun deleteAllByMeetingId(meetingId: String): Int
 
    /**
     * 新建人员
     * @return 0:已有改参会人员,无法重复添加;1:插入成功
     */
    fun addParticipant(participant: Participant): Int
 
    fun deleteParticipant(participant: Participant): Int
 
    fun getParticipantByType(meetingId: String, roomId: String?, participantType: Int): List<Participant>
 
    fun getParticipant(meetingId: String, roomId: String?, participantId: String): Participant?
 
    fun selectAsUserInfo(meetingId: String, roomId: String): List<MeetingUserOnlineStatusVo>
 
}