content.js
1.59 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
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
import request from '@/utils/request'
// 外部联系人 会话列表
const getExternalChatList = (fromId) => {
return request({
url: '/chat/msg/selectExternalChatList/' + fromId,
method: 'get'
})
}
// 单聊 会话列表
const selectAloneChatList = (params) => {
return request({
url: '/chat/msg/selectAloneChatList',
method: 'get',
params
})
}
// 内部联系人列表
const getInternalChatList = (fromId) => {
return request({
url: '/chat/msg/selectInternalChatList/' + fromId,
method: 'get'
})
}
const getGroupChatList = (fromId) => {
return request({
url: '/chat/msg/selectGroupChatList/' + fromId,
method: 'get'
})
}
// const chatList = (params) => {
// return request({
// url: '/chat/msg/list',
// method: 'get',
// params
// })
// }
const indexTable = () => {
return request({
url: '/wecom/page/getCorpBasicData',
method: 'get'
})
}
const indexEchart = () => {
return request({
url: '/wecom/page/getCorpRealTimeData',
method: 'get'
})
}
// 全文检索 会话列表
export const getChatList = (params) => {
return request({
url: '/chat/msg/selectFullSearchChatList',
method: 'get',
params
})
}
// 全文检索 导出列表
export const exportList = (params) => {
return request({
url: '/chat/msg/selectFullSearchChatList/export',
method: 'get',
params
// responseType: 'blob'
})
}
//
export const content = {
indexEchart,
indexTable,
getExternalChatList,
selectAloneChatList,
getInternalChatList,
getGroupChatList,
// chatList,
getChatList
}
export default content