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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package cn.flightfeather.supervision.lightshare.repository
 
import cn.flightfeather.supervision.domain.entity.MeetingInfo
import cn.flightfeather.supervision.websocket.MeetingMsgVo
import org.springframework.web.multipart.MultipartFile
import javax.servlet.http.HttpServletResponse
 
/**
 * @author riku
 * Date: 2019/11/19
 */
interface MeetingRepository {
 
    /**
     * 获取全部会议,按设定开始时间降序排列
     */
    fun getAllMeeting(userId: String, page: Int, perPage: Int, response: HttpServletResponse): List<MeetingInfo>
 
    fun getMeeting(meetingId: String): MeetingInfo?
 
    fun getMeetingUserJoined(userId: String, status: Int, page: Int, perPage: Int, response: HttpServletResponse): List<MeetingInfo>
 
    fun getMyMeetingUnReleased(userId: String, status: Int, page: Int, perPage: Int, response: HttpServletResponse): List<MeetingInfo>
 
    fun getMyMeetingReleased(userId: String, status: Int, page: Int, perPage: Int, response: HttpServletResponse): List<MeetingInfo>
 
    fun getHistoryMeeting(userId: String, status: Int, page: Int, perPage: Int, response: HttpServletResponse): List<MeetingInfo>
 
    fun addMeetingInfo(meetingInfo: MeetingInfo): Int
 
    fun updateMeetingInfo(userId: String, meetingInfo: MeetingInfo): Int
 
    fun deleteMeetingInfo(meetingId: String): Int
 
    fun updateMeetingStatusDeleted(meetingId: String): Int
 
    /**
     * 批量保存聊天室记录
     */
    fun saveMeetingRecords(meetingId: String, roomId: String, msgVoList: List<MeetingMsgVo>):Int
 
    /**
     * 获取聊天记录
     */
    fun getMeetingRecords(userId: String, meetingId: String, roomId: String, page: Int, perPage: Int, response: HttpServletResponse): List<MeetingMsgVo>
 
}