Commit dc743a15 authored by yanghao's avatar yanghao

feature: 添加在线留言

parent b4d3532c
import request from '@/utils/request'
// 创建留言
export function createMessageLeave(data) {
return request({
url: '/ecw/message-leave/create',
method: 'post',
data: data
})
}
// 回复留言
export function replyMessageLeave(data) {
return request({
url: '/ecw/message-leave/reply',
method: 'put',
data: data
})
}
// 编辑留言的回复
export function updateReply(data) {
return request({
url: '/ecw/message-leave/updateReply',
method: 'put',
data: data
})
}
// 删除留言
export function deleteMessageLeave(id) {
return request({
url: '/ecw/message-leave/delete?id=' + id,
method: 'delete'
})
}
// 获得留言
export function getMessageLeave(id) {
return request({
url: '/ecw/message-leave/get?id=' + id,
method: 'get'
})
}
// 获得留言分页
export function getMessageLeavePage(query) {
return request({
url: '/ecw/message-leave/page',
method: 'get',
params: query
})
}
// 导出留言 Excel
export function exportMessageLeaveExcel(query) {
return request({
url: '/ecw/message-leave/export-excel',
method: 'get',
params: query,
responseType: 'blob'
})
}
......@@ -75,7 +75,9 @@ export const DICT_TYPE = {
CUSTOMER_TYPE: 'customer_type',
CUSTOMER_LEVEL: 'customer_level',
CUSTOMER_COMPLAINT_TYPE: 'customer_complaint_type',
CUSTOMER_COMPLAINT_STATUS: 'customer_complaint_status'
CUSTOMER_COMPLAINT_STATUS: 'customer_complaint_status',
ECW_MESSAGE_LEAVE_TYPE: 'ecw_message_leave_type',
ECW_MESSAGE_LEAVE_STATUS: 'ecw_message_leave_status'
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment