import request from "@/utils/request"

/** 补贴发放记录 — 分页列表 */
export function listSubsidyRecord(query) {
  return request({
    url: "/industryPolicy/subsidyRecord/list",
    method: "get",
    params: query
  })
}

/** 详情 */
export function getSubsidyRecord(id) {
  return request({
    url: "/industryPolicy/subsidyRecord/" + id,
    method: "get"
  })
}

/** 新增 */
export function addSubsidyRecord(data) {
  return request({
    url: "/industryPolicy/subsidyRecord",
    method: "post",
    data
  })
}

/** 修改 */
export function updateSubsidyRecord(data) {
  return request({
    url: "/industryPolicy/subsidyRecord",
    method: "put",
    data
  })
}

/** 删除 */
export function delSubsidyRecord(ids) {
  return request({
    url: "/industryPolicy/subsidyRecord/" + ids,
    method: "delete"
  })
}
