mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 14:56:44 +08:00
2022年5月29日从svn移到git
This commit is contained in:
52
src/api/system/message.js
Normal file
52
src/api/system/message.js
Normal file
@@ -0,0 +1,52 @@
|
||||
/* 消息的处理 */
|
||||
import ajax from '@/utils/xajax.js'
|
||||
|
||||
/*
|
||||
消息分页
|
||||
@param pageIndex 第几页
|
||||
@param pageSize 每页展示条数
|
||||
@param isRead 是否已读
|
||||
*/
|
||||
const list=function(query){
|
||||
return ajax.post('/xboe/sys/message/list',query);
|
||||
}
|
||||
/*
|
||||
删除消息
|
||||
@param ids 勾选的多个消息id
|
||||
*/
|
||||
const del=function(ids){
|
||||
return ajax.postJson('/xboe/sys/message/delete',ids);
|
||||
}
|
||||
/*
|
||||
查看当前消息详细信息
|
||||
点击查看后如果是未读变成已读
|
||||
@param id 当前消息id
|
||||
*/
|
||||
const detail=function(id){
|
||||
return ajax.get('/xboe/sys/message/detail?id=${id}');
|
||||
}
|
||||
/*发送消息
|
||||
*/
|
||||
const save=function(data){
|
||||
return ajax.postJson('/xboe/sys/message/save',data);
|
||||
}
|
||||
/*
|
||||
当前未读条数 当前用户
|
||||
*/
|
||||
const isRead=function(){
|
||||
return ajax.get('/xboe/sys/message/isRead');
|
||||
}
|
||||
/*
|
||||
批量设置已读 ids
|
||||
*/
|
||||
const updateIsRead=function(ids){
|
||||
return ajax.postJson('/xboe/sys/message/updateIsRead',ids)
|
||||
}
|
||||
export default{
|
||||
list,
|
||||
del,
|
||||
detail,
|
||||
save,
|
||||
isRead,
|
||||
updateIsRead
|
||||
}
|
||||
Reference in New Issue
Block a user