客户超额消息通知
This commit is contained in:
@@ -0,0 +1,110 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询通知规则列表
|
||||
export function listNotifyRule(query) {
|
||||
return request({
|
||||
url: '/system/notify/rule/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询通知规则详情
|
||||
export function getNotifyRule(ruleId) {
|
||||
return request({
|
||||
url: '/system/notify/rule/' + ruleId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增通知规则
|
||||
export function addNotifyRule(data) {
|
||||
return request({
|
||||
url: '/system/notify/rule',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改通知规则
|
||||
export function updateNotifyRule(data) {
|
||||
return request({
|
||||
url: '/system/notify/rule',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除通知规则
|
||||
export function delNotifyRule(ruleIds) {
|
||||
return request({
|
||||
url: '/system/notify/rule/' + ruleIds,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 立即执行一次客户超额扫描
|
||||
export function scanOverdueNow() {
|
||||
return request({
|
||||
url: '/system/notify/scan',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询通知消息列表
|
||||
export function listNotifyMessage(query) {
|
||||
return request({
|
||||
url: '/system/notify/message/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询通知消息详情(含接收人已读情况)
|
||||
export function getNotifyMessage(messageId) {
|
||||
return request({
|
||||
url: '/system/notify/message/' + messageId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 登录后待弹屏消息(拉取即置弹屏已展示)
|
||||
export function popupNotify() {
|
||||
return request({
|
||||
url: '/system/notify/mine/popup',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 我的通知列表
|
||||
export function listMyNotify(readFlag) {
|
||||
return request({
|
||||
url: '/system/notify/mine/list',
|
||||
method: 'get',
|
||||
params: { readFlag }
|
||||
})
|
||||
}
|
||||
|
||||
// 我的未读数
|
||||
export function countMyNotify() {
|
||||
return request({
|
||||
url: '/system/notify/mine/count',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 标记单条已读
|
||||
export function readMyNotify(receiveId) {
|
||||
return request({
|
||||
url: '/system/notify/mine/read/' + receiveId,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
||||
// 全部已读
|
||||
export function readAllMyNotify() {
|
||||
return request({
|
||||
url: '/system/notify/mine/readAll',
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user