server.js
2.7 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
import request from '@/utils/request'
//* ******************** 客服模块 *********************
// 查询客服列表
export function getAllList(data) {
return request({
url: '/customerService/getAll',
method: 'post',
data
})
}
// 添加客服
export function AddService(data) {
return request({
url: '/customerService/save',
method: 'post',
data
})
}
// 删除客服
export function delService(data) {
return request({
url: '/customerService/delete',
method: 'post',
data
})
}
// 编辑客服
export function UpService(data) {
return request({
url: '/customerService/update',
method: 'post',
data
})
}
// 获取客服下的接待员
export function getAllReceptionist(data) {
return request({
url: '/customerService/getAllReceptionist',
method: 'post',
data
})
}
// // 获取接待人部门分类列表
export function getDepartmentList(data) {
return request({
url: '/customerService/getDepartmentList',
method: 'post',
data
})
}
// // 获取接待人部门分类列表
export function getExternalUserList(data) {
return request({
url: '/customerService/getExternalUserList',
method: 'post',
data
})
}
// // 添加接待员
export function saveReceptionist(data) {
return request({
url: '/customerService/saveReceptionist',
method: 'post',
data
})
}
// // 添加接待员
export function deleteReceptionist(data) {
return request({
url: '/customerService/deleteReceptionist',
method: 'post',
data
})
}
// // 获取客服配置
export function getConfig(data) {
return request({
url: '/customerService/getConfig',
method: 'post',
data
})
}
// // 修改客服配置
export function saveOrUpdateConfig(data) {
return request({
url: '/customerService/saveOrUpdateConfig',
method: 'post',
data
})
}
// // 查询是否授权
export function checkAuthState(data) {
return request({
url: '/customerService/checkAuthState',
method: 'post',
data
})
}
// 商家查看消息列表
export function shopGetList(data) {
return request({
url: `/cereMessageCustomerServiceChat/shop/list`,
method: 'get',
data
})
}
// 商家查看指定用户消息
export function shopGetDetails(data) {
return request({
url: `/cereMessageCustomerServiceChat/shop/getDetails/${data}`,
method: 'get',
})
}
// 发送消息给用户
export function shopPushMsg(data) {
return request({
url: `/cereMessageCustomerServiceChat/shop/save`,
method: 'post',
data
})
}
// 更新消息阅读状态
export function updateReadStatus(data) {
return request({
url: `/cereMessageCustomerServiceChat/chat/updateReadStatus`,
method: 'post',
data
})
}