notice.js 1.91 KB
import request from '@/plugin/axios'
/**
 * 公告管理
 */
export function noticeTable(data) {
    return request({
      url: '/hlwj/Notice/draftBox',
      method: 'post',
      data
    })
}
/**
 * 物理删除
 */
export function physicalDeletion(data) {
  return request({
    url: '/hlwj/Notice/deleteByIds?idList='+data,
    method: 'delete'
  })
}
/**
 * 逻辑删除
 */
export function logicalDeletion(data) {
  return request({
    url: '/hlwj/Notice/updateIsDelete',
    method: 'post',
    data
  })
}
/**
 * 新增公告
 */
export function newAnnouncement(data) {
  return request({
    url: '/hlwj/Notice/insert',
    method: 'post',
    data
  })
}
/**
 * 发布公告
 */
export function announcement(data) {
  return request({
    url: '/hlwj/Notice/updateState?idList='+data.idList,
    method: 'post'
  })
}

/**
 * 更新公告-编辑
 */
export function updateNotice(data) {
  return request({
    url: '/hlwj/Notice/update',
    method: 'post',
    data
  })
}
/**
 * 发布箱tableList
 */
export function releaseBox(data) {
  return request({
    url: '/hlwj/Notice/issueBox',
    method: 'post',
    data
  })
}

/**
 * 发布箱启用禁用
 */
export function publishingBoxEnabled(data) {
  return request({
    url: '/hlwj/Notice/updateEnable?idList='+data.idList+'&enable='+data.enable,
    method: 'post'
  })
}
/**
 * 公告逻辑删除(使用场景:发布箱
 */
export function publishingLogicalDeletion(data) {
  return request({
    url: '/hlwj/Notice/updateIsDelete?idList='+data.idList+'&IsDelete='+data.IsDelete,
    method: 'post'
  })
}
/**
 * 公告管理回收箱tablelist
 */
export function recycleBinTableList(data) {
  return request({
    url: '/hlwj/Notice/recycleBox?',
    method: 'post',
    data
  })
}
/**
 * 读取明细-详情展示
 */
export function getDetailById(data) {
  return request({
    url: '/hlwj/Notice/getDetailById',
    method: 'get',
    params: {
      id:data
    }
  })
}