import request from '@/utils/request'

// ========== 安全检查方案 ==========
export function listObjSins(query) {
  return request({ url: '/sins/objsins/list', method: 'get', params: query })
}
export function getObjSins(guid) {
  return request({ url: '/sins/objsins/' + guid, method: 'get' })
}
export function addObjSins(data) {
  return request({ url: '/sins/objsins', method: 'post', data: data })
}
export function updateObjSins(data) {
  return request({ url: '/sins/objsins', method: 'put', data: data })
}
export function delObjSins(guids) {
  return request({ url: '/sins/objsins/' + guids, method: 'delete' })
}

// ========== 检查方案明细 ==========
export function listBisSinsSche(query) {
  return request({ url: '/sins/sinssche/list', method: 'get', params: query })
}
export function getBisSinsSche(guid) {
  return request({ url: '/sins/sinssche/' + guid, method: 'get' })
}
export function addBisSinsSche(data) {
  return request({ url: '/sins/sinssche', method: 'post', data: data })
}
export function updateBisSinsSche(data) {
  return request({ url: '/sins/sinssche', method: 'put', data: data })
}
export function delBisSinsSche(guids) {
  return request({ url: '/sins/sinssche/' + guids, method: 'delete' })
}

// ========== 检查组 ==========
export function listBisSinsScheGrop(query) {
  return request({ url: '/sins/sinsschegrop/list', method: 'get', params: query })
}
export function getBisSinsScheGrop(guid) {
  return request({ url: '/sins/sinsschegrop/' + guid, method: 'get' })
}
export function addBisSinsScheGrop(data) {
  return request({ url: '/sins/sinsschegrop', method: 'post', data: data })
}
export function updateBisSinsScheGrop(data) {
  return request({ url: '/sins/sinsschegrop', method: 'put', data: data })
}
export function delBisSinsScheGrop(guids) {
  return request({ url: '/sins/sinsschegrop/' + guids, method: 'delete' })
}

// ========== 检查报告 ==========
export function listBisSinsReport(query) {
  return request({ url: '/sins/sinsreport/list', method: 'get', params: query })
}
export function getBisSinsReport(guid) {
  return request({ url: '/sins/sinsreport/' + guid, method: 'get' })
}
export function addBisSinsReport(data) {
  return request({ url: '/sins/sinsreport', method: 'post', data: data })
}
export function updateBisSinsReport(data) {
  return request({ url: '/sins/sinsreport', method: 'put', data: data })
}
export function delBisSinsReport(guids) {
  return request({ url: '/sins/sinsreport/' + guids, method: 'delete' })
}

// ========== 专家信息 ==========
export function listObjExpert(query) {
  return request({ url: '/sins/objexpert/list', method: 'get', params: query })
}
export function getObjExpert(guid) {
  return request({ url: '/sins/objexpert/' + guid, method: 'get' })
}
export function addObjExpert(data) {
  return request({ url: '/sins/objexpert', method: 'post', data: data })
}
export function updateObjExpert(data) {
  return request({ url: '/sins/objexpert', method: 'put', data: data })
}
export function delObjExpert(guids) {
  return request({ url: '/sins/objexpert/' + guids, method: 'delete' })
}

// ========== 执法案件 ==========
export function listObjCase(query) {
  return request({ url: '/sins/objcase/list', method: 'get', params: query })
}
export function getObjCase(guid) {
  return request({ url: '/sins/objcase/' + guid, method: 'get' })
}
export function addObjCase(data) {
  return request({ url: '/sins/objcase', method: 'post', data: data })
}
export function updateObjCase(data) {
  return request({ url: '/sins/objcase', method: 'put', data: data })
}
export function delObjCase(guids) {
  return request({ url: '/sins/objcase/' + guids, method: 'delete' })
}

// ========== 不良行为记录 ==========
export function listBisWiunBereBad(query) {
  return request({ url: '/sins/wiunberebad/list', method: 'get', params: query })
}
export function getBisWiunBereBad(guid) {
  return request({ url: '/sins/wiunberebad/' + guid, method: 'get' })
}
export function addBisWiunBereBad(data) {
  return request({ url: '/sins/wiunberebad', method: 'post', data: data })
}
export function updateBisWiunBereBad(data) {
  return request({ url: '/sins/wiunberebad', method: 'put', data: data })
}
export function delBisWiunBereBad(guids) {
  return request({ url: '/sins/wiunberebad/' + guids, method: 'delete' })
}

// ========== 应急资源 ==========
export function listAttEngRes(query) {
  return request({ url: '/sins/attengres/list', method: 'get', params: query })
}
export function getAttEngRes(guid) {
  return request({ url: '/sins/attengres/' + guid, method: 'get' })
}
export function addAttEngRes(data) {
  return request({ url: '/sins/attengres', method: 'post', data: data })
}
export function updateAttEngRes(data) {
  return request({ url: '/sins/attengres', method: 'put', data: data })
}
export function delAttEngRes(guids) {
  return request({ url: '/sins/attengres/' + guids, method: 'delete' })
}

// ========== 单位关联 ==========
export function listRelEngOrg(query) {
  return request({ url: '/sins/relengorg/list', method: 'get', params: query })
}
export function getRelEngOrg(guid) {
  return request({ url: '/sins/relengorg/' + guid, method: 'get' })
}
export function addRelEngOrg(data) {
  return request({ url: '/sins/relengorg', method: 'post', data: data })
}
export function updateRelEngOrg(data) {
  return request({ url: '/sins/relengorg', method: 'put', data: data })
}
export function delRelEngOrg(guids) {
  return request({ url: '/sins/relengorg/' + guids, method: 'delete' })
}

// ========== 方案与组织关联 ==========
export function listRelSinsToOrg(query) {
  return request({ url: '/sins/relsinstoorg/list', method: 'get', params: query })
}
export function getRelSinsToOrg(guid) {
  return request({ url: '/sins/relsinstoorg/' + guid, method: 'get' })
}
export function addRelSinsToOrg(data) {
  return request({ url: '/sins/relsinstoorg', method: 'post', data: data })
}
export function updateRelSinsToOrg(data) {
  return request({ url: '/sins/relsinstoorg', method: 'put', data: data })
}
export function delRelSinsToOrg(guids) {
  return request({ url: '/sins/relsinstoorg/' + guids, method: 'delete' })
}

// ========== 检查组与专家关联 ==========
export function listRelSinsGroupToExpe(query) {
  return request({ url: '/sins/relsinsgrouptoexpe/list', method: 'get', params: query })
}
export function getRelSinsGroupToExpe(guid) {
  return request({ url: '/sins/relsinsgrouptoexpe/' + guid, method: 'get' })
}
export function addRelSinsGroupToExpe(data) {
  return request({ url: '/sins/relsinsgrouptoexpe', method: 'post', data: data })
}
export function updateRelSinsGroupToExpe(data) {
  return request({ url: '/sins/relsinsgrouptoexpe', method: 'put', data: data })
}
export function delRelSinsGroupToExpe(guids) {
  return request({ url: '/sins/relsinsgrouptoexpe/' + guids, method: 'delete' })
}

// ========== 检查组与人员关联 ==========
export function listRelSinsGroupToPers(query) {
  return request({ url: '/sins/relsinsgrouptopers/list', method: 'get', params: query })
}
export function getRelSinsGroupToPers(guid) {
  return request({ url: '/sins/relsinsgrouptopers/' + guid, method: 'get' })
}
export function addRelSinsGroupToPers(data) {
  return request({ url: '/sins/relsinsgrouptopers', method: 'post', data: data })
}
export function updateRelSinsGroupToPers(data) {
  return request({ url: '/sins/relsinsgrouptopers', method: 'put', data: data })
}
export function delRelSinsGroupToPers(guids) {
  return request({ url: '/sins/relsinsgrouptopers/' + guids, method: 'delete' })
}

// ========== 检查组与单位关联 ==========
export function listRelSinsGroupToWiun(query) {
  return request({ url: '/sins/relsinsgrouptowiun/list', method: 'get', params: query })
}
export function getRelSinsGroupToWiun(guid) {
  return request({ url: '/sins/relsinsgrouptowiun/' + guid, method: 'get' })
}
export function addRelSinsGroupToWiun(data) {
  return request({ url: '/sins/relsinsgrouptowiun', method: 'post', data: data })
}
export function updateRelSinsGroupToWiun(data) {
  return request({ url: '/sins/relsinsgrouptowiun', method: 'put', data: data })
}
export function delRelSinsGroupToWiun(guids) {
  return request({ url: '/sins/relsinsgrouptowiun/' + guids, method: 'delete' })
}

// ========== 配置关联 ==========
export function listRelSblzConfig(query) {
  return request({ url: '/sins/relsblzconfig/list', method: 'get', params: query })
}
export function getRelSblzConfig(guid) {
  return request({ url: '/sins/relsblzconfig/' + guid, method: 'get' })
}
export function addRelSblzConfig(data) {
  return request({ url: '/sins/relsblzconfig', method: 'post', data: data })
}
export function updateRelSblzConfig(data) {
  return request({ url: '/sins/relsblzconfig', method: 'put', data: data })
}
export function delRelSblzConfig(guids) {
  return request({ url: '/sins/relsblzconfig/' + guids, method: 'delete' })
}

// ========== 凭证 ==========
export function listSawfCredSapr(query) {
  return request({ url: '/sins/sawfcredsapr/list', method: 'get', params: query })
}
export function getSawfCredSapr(guid) {
  return request({ url: '/sins/sawfcredsapr/' + guid, method: 'get' })
}
export function addSawfCredSapr(data) {
  return request({ url: '/sins/sawfcredsapr', method: 'post', data: data })
}
export function updateSawfCredSapr(data) {
  return request({ url: '/sins/sawfcredsapr', method: 'put', data: data })
}
export function delSawfCredSapr(guids) {
  return request({ url: '/sins/sawfcredsapr/' + guids, method: 'delete' })
}
