import request from "@/utils/request"

/** 疫病诊疗标准 — 分页列表 */
export function listEpidemicTreatmentStandard(query) {
  return request({
    url: "/epidemicTreatment/standard/list",
    method: "get",
    params: query
  })
}

/** 详情 */
export function getEpidemicTreatmentStandard(id) {
  return request({
    url: "/epidemicTreatment/standard/" + id,
    method: "get"
  })
}

/** 新增 */
export function addEpidemicTreatmentStandard(data) {
  return request({
    url: "/epidemicTreatment/standard",
    method: "post",
    data
  })
}

/** 修改 */
export function updateEpidemicTreatmentStandard(data) {
  return request({
    url: "/epidemicTreatment/standard",
    method: "put",
    data
  })
}

/** 删除 */
export function delEpidemicTreatmentStandard(ids) {
  return request({
    url: "/epidemicTreatment/standard/" + ids,
    method: "delete"
  })
}

/** 同步知识库 */
export function syncKbEpidemicTreatmentStandard(id) {
  return request({
    url: "/epidemicTreatment/standard/syncKb/" + id,
    method: "post"
  })
}

/** 移出知识库 */
export function removeKbEpidemicTreatmentStandard(id) {
  return request({
    url: "/epidemicTreatment/standard/removeKb/" + id,
    method: "post"
  })
}

/** 发布 */
export function publishEpidemicTreatmentStandard(id) {
  return request({
    url: "/epidemicTreatment/standard/publish/" + id,
    method: "post"
  })
}

/** 下架 */
export function offlineEpidemicTreatmentStandard(id) {
  return request({
    url: "/epidemicTreatment/standard/offline/" + id,
    method: "post"
  })
}
