pnkx-admin-mongo/pnkx-uniapp/api/px/blog/message.js
2024-01-13 13:29:20 +08:00

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
})
}