40 lines
726 B
JavaScript
40 lines
726 B
JavaScript
|
import request from '@/utils/request'
|
||
|
|
||
|
/**
|
||
|
* 留言
|
||
|
*/
|
||
|
export function addMessage(params) {
|
||
|
return request({
|
||
|
url: '/admin/addMessage',
|
||
|
method: 'post',
|
||
|
data: params
|
||
|
})
|
||
|
}
|
||
|
|
||
|
//获取留言板内容
|
||
|
export function getMessageList(query) {
|
||
|
return request({
|
||
|
url: '/admin/getMessageList',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
//获取留言审核
|
||
|
export function getMessageExamine(query) {
|
||
|
return request({
|
||
|
url: '/admin/getMessageExamine',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改留言
|
||
|
export function updateMessage(data) {
|
||
|
return request({
|
||
|
url: '/admin/updateMessage',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|