Files
zhxg_pc/src/api/routine/NotificationManagement.js

84 lines
1.7 KiB
JavaScript
Raw Normal View History

import request from '@/utils/request'
// 查询通知管理列表
export function listNotificationManagement(query) {
return request({
url: '/routine/NotificationManagement/list',
method: 'get',
params: query
})
}
// 查询通知管理详细
export function getNotificationManagement(id) {
return request({
url: '/routine/NotificationManagement/' + id,
method: 'get'
})
}
// 新增通知管理
export function addNotificationManagement(data) {
return request({
url: '/routine/NotificationManagement/add',
method: 'post',
data: data
})
}
// 修改通知管理
export function updateNotificationManagement(data) {
return request({
url: '/routine/NotificationManagement/update',
method: 'post',
data: data
})
}
// 删除通知管理
export function delNotificationManagement(id) {
return request({
url: '/routine/NotificationManagement/' + id,
method: 'post'
})
}
// 批量修改通知管理
export function batchUpdateNotificationManagement(data) {
return request({
url: '/routine/NotificationManagement/batchUpdate',
method: 'post',
data: data
})
}
// 获取年级列表
export function getGradeList() {
return request({
url: '/routine/NotificationManagement/gradeList',
method: 'get'
})
}
// 按年级发送通知
export function sendNotificationByGrades(data) {
return request({
url: '/routine/NotificationManagement/sendByGrades',
method: 'post',
data: data
})
}
// 查询当前用户发送的通知列表
export function listMySentNotifications(query) {
return request({
url: '/routine/NotificationManagement/my-sent',
method: 'get',
params: query
})
}