50 lines
889 B
Plaintext
50 lines
889 B
Plaintext
import { http } from '@/utils/http/axios';
|
|
|
|
/**
|
|
* @description: 消息列表
|
|
*/
|
|
export function getMessageList(params?) {
|
|
return http.request({
|
|
url: '/message/page',
|
|
method: 'GET',
|
|
params,
|
|
});
|
|
}
|
|
/**
|
|
* @description: 已读消息
|
|
*/
|
|
export function messageRead(id) {
|
|
return http.request({
|
|
url: '/message/read/' + id,
|
|
method: 'get',
|
|
});
|
|
}
|
|
/**
|
|
* @description: 根据ID获取详情
|
|
*/
|
|
export function getMessageDetail(id) {
|
|
return http.request({
|
|
url: '/message/detail/' + id,
|
|
method: 'get',
|
|
});
|
|
}
|
|
/**
|
|
* @description: 删除消息
|
|
*/
|
|
export function messageDelete(id) {
|
|
return http.request({
|
|
url: '/message/delete/' + id,
|
|
method: 'DELETE',
|
|
});
|
|
}
|
|
/**
|
|
* @description: 批量删除消息
|
|
*/
|
|
export function messageBatchDelete(data: any) {
|
|
return http.request({
|
|
url: '/message/batchDelete',
|
|
method: 'DELETE',
|
|
data,
|
|
});
|
|
}
|