增加消息的一键处理接口

This commit is contained in:
daihh
2022-11-10 15:47:56 +08:00
parent ff43dc3b81
commit b4493ca981

View File

@@ -42,11 +42,24 @@ const isRead=function(){
const updateIsRead=function(ids){
return ajax.postJson('/xboe/sys/message/updateIsRead',ids)
}
/**把当前人所有未读消息设置为已读*/
const readAll=function(){
return ajax.postJson('/xboe/sys/message/readall')
}
/**清空当前人的接收到的所有的消息*/
const cleanAll=function(){
return ajax.postJson('/xboe/sys/message/clearall')
}
export default{
list,
del,
detail,
save,
isRead,
updateIsRead
updateIsRead,
readAll,
cleanAll
}