39 lines
674 B
JavaScript
39 lines
674 B
JavaScript
|
|
import request from '@/utils/request'
|
|
|
|
// 新增一个通知
|
|
export function notificationAdd(data) {
|
|
return request({
|
|
url: '/api/web/notification/add',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 删除一个通知
|
|
export function notificationDel(data) {
|
|
return request({
|
|
url: '/api/web/notification/del',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 获取通知列表
|
|
export function notificationList(params) {
|
|
return request({
|
|
url: '/api/web/notification/list',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
// 修改一个通知
|
|
export function notificationUpdate(data) {
|
|
return request({
|
|
url: '/api/web/notification/update',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|