IWeConversationArchiveService.java
1.03 KB
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
package com.linkwechat.wecom.service;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;
import com.linkwechat.common.core.domain.ConversationArchiveQuery;
import java.util.List;
/**
* @author sxw
* @description 会话存档业务接口
* @date 2020/12/19 13:59
**/
public interface IWeConversationArchiveService {
/**
* 根据用户ID 获取对应内部联系人列表
* @param query 入参
* @param /fromId 发送人id
* @param /reveiceId 接收人id
* @return
*/
PageInfo<JSONObject> getChatContactList(ConversationArchiveQuery query);
PageInfo<JSONObject> getChatRoomContactList(ConversationArchiveQuery query);
/**
* 查询最早聊天记录
* @param fromId
* @param receiveId
* @return
*/
JSONObject getFinalChatContactInfo(String fromId, String receiveId);
/**
* 查询最早群聊记录
* @param fromId
* @param roomId
* @return
*/
JSONObject getFinalChatRoomContactInfo(String fromId, String roomId);
}