import request from '@/utils/request'

// 添加公告
export function addNotice(data) {
  return request({
    url: 'ecloud-task-center-dt/msgCenter/addMsg',
    method: 'post',
    data
  })
}

// 获取公告
export function getNotice(data) {
  return request({
    url: 'ecloud-task-center-dt/msgCenter/queryMsgSum',
    method: 'post',
    data
  })
}

// 编辑公告
export function editNotice(data) {
  return request({
    url: 'ecloud-task-center-dt/msgCenter/updateMsgDetail',
    method: 'post',
    data
  })
}

// 删除公告
export function delNotice(data) {
  return request({
    url: 'ecloud-task-center-dt/msgCenter/deleteMsg',
    method: 'post',
    data
  })
}

// 获取公告详情
export function getNoticeDetail(data) {
  return request({
    url: 'ecloud-task-center-dt/msgCenter/queryMsgDetail',
    method: 'post',
    data
  })
}



