import request from "@/utils/request"

/** 药物禁配标准 — 分页列表 */
export function listDrugIncompatibilityStandard(query) {
  return request({
    url: "/drugIncompatibility/standard/list",
    method: "get",
    params: query
  })
}

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

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

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

/** 删除（ids 可为单个 id 或逗号分隔） */
export function delDrugIncompatibilityStandard(ids) {
  return request({
    url: "/drugIncompatibility/standard/" + ids,
    method: "delete"
  })
}

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

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