增加客服组件
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
import config from "@/config"
|
||||
import http from "@/utils/request"
|
||||
|
||||
export default {
|
||||
send: {
|
||||
url: `${config.API_URL}/customer.service.send.message`,
|
||||
name: "发送消息到用户",
|
||||
post: async function(data){
|
||||
return await http.post(this.url, data);
|
||||
}
|
||||
},
|
||||
list: {
|
||||
url: `${config.API_URL}/customer.service.message.list`,
|
||||
name: "获取消息列表",
|
||||
post: async function(data){
|
||||
return await http.post(this.url, data);
|
||||
}
|
||||
},
|
||||
typeList: {
|
||||
url: `${config.API_URL}/customer.service.type.list`,
|
||||
name: "问题工单常量",
|
||||
post: async function(data){
|
||||
return await http.post(this.url, data);
|
||||
}
|
||||
},
|
||||
delete: {
|
||||
url: `${config.API_URL}/customer.service.message.delete`,
|
||||
name: "删除消息记录",
|
||||
post: async function(data){
|
||||
return await http.post(this.url, data);
|
||||
}
|
||||
},
|
||||
recordList: {
|
||||
url: `${config.API_URL}/customer.service.message.record.list`,
|
||||
name: "消息记录列表",
|
||||
post: async function(data){
|
||||
return await http.post(this.url, data);
|
||||
}
|
||||
},
|
||||
customer: {
|
||||
url: `${config.API_URL}/customer.service.random.assign`,
|
||||
name: "随机客服",
|
||||
post: async function(data){
|
||||
return await http.post(this.url, data);
|
||||
}
|
||||
},
|
||||
read: {
|
||||
url: `${config.API_URL}/customer.service.message.read`,
|
||||
name: "标记已读",
|
||||
post: async function(data){
|
||||
return await http.post(this.url, data);
|
||||
}
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user