增加客服组件

This commit is contained in:
龙运模
2024-11-09 17:04:46 +08:00
parent 0b9b5e2aef
commit 372ca89f07
6 changed files with 436 additions and 54 deletions
+54
View File
@@ -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);
}
},
}