import request from "@/utils/request"

/** 项目与补贴 — 补贴 — 分页列表 */
export function listSubsidyMatter(query) {
  return request({
    url: "/industryPolicy/subsidyMatter/list",
    method: "get",
    params: query
  })
}

export function getSubsidyMatter(id) {
  return request({
    url: "/industryPolicy/subsidyMatter/" + id,
    method: "get"
  })
}

export function addSubsidyMatter(data) {
  return request({
    url: "/industryPolicy/subsidyMatter",
    method: "post",
    data
  })
}

export function updateSubsidyMatter(data) {
  return request({
    url: "/industryPolicy/subsidyMatter",
    method: "put",
    data
  })
}

export function delSubsidyMatter(ids) {
  return request({
    url: "/industryPolicy/subsidyMatter/" + ids,
    method: "delete"
  })
}

export function publishSubsidyMatter(id) {
  return request({
    url: "/industryPolicy/subsidyMatter/publish/" + id,
    method: "post"
  })
}

export function offlineSubsidyMatter(id) {
  return request({
    url: "/industryPolicy/subsidyMatter/offline/" + id,
    method: "post"
  })
}
