notice.js 1.7 KB
import request from '@/utils/request'
import SERVER from './config'

// 新增系统通知
export function addSysNotice (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/system/sysNotice/addSysNotice',
        method: 'post',
        data
    })
}

//编辑系统通知
export function updateSysNotice (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/system/sysNotice/updateSysNotice',
        method: 'post',
        data
    })
}

// 获取通知列表
export function getSysNoticeList (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/system/sysNotice/getSysNoticeList',
        method: 'post',
        data
    })
}

//获取法律法规列表
export function getSysPolicyList (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/system/sysNotice/getSysPolicyList',
        method: 'post',
        data
    })
}

//删除系统通知
export function deleteSysNotice (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/system/sysNotice/deleteSysNotice',
        method: 'get',
        params: params
    })
}

//发布通知
export function publishNotice (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/system/sysNotice/publishNotice',
        method: 'get',
        params: params
    })
}

//取消发布通知
export function unPublishNotice (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/system/sysNotice/unPublishNotice',
        method: 'get',
        params: params
    })
}

//设置已读状态
export function setReadStatus (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/system/sysNotice/setReadStatus',
        method: 'get',
        params: params
    })
}