import request from '@/utils/request'

// ========== 应急预案基本信息 ==========
export function listBusiConplanBasic(query) { return request({ url: '/eme/conplanbasic/list', method: 'get', params: query }) }
export function getBusiConplanBasic(guid) { return request({ url: '/eme/conplanbasic/' + guid, method: 'get' }) }
export function addBusiConplanBasic(data) { return request({ url: '/eme/conplanbasic', method: 'post', data: data }) }
export function updateBusiConplanBasic(data) { return request({ url: '/eme/conplanbasic', method: 'put', data: data }) }
export function delBusiConplanBasic(guids) { return request({ url: '/eme/conplanbasic/' + guids, method: 'delete' }) }

// ========== 应急演练评估 ==========
export function listBusiDrillEva(query) { return request({ url: '/eme/drilleva/list', method: 'get', params: query }) }
export function getBusiDrillEva(guid) { return request({ url: '/eme/drilleva/' + guid, method: 'get' }) }
export function addBusiDrillEva(data) { return request({ url: '/eme/drilleva', method: 'post', data: data }) }
export function updateBusiDrillEva(data) { return request({ url: '/eme/drilleva', method: 'put', data: data }) }
export function delBusiDrillEva(guids) { return request({ url: '/eme/drilleva/' + guids, method: 'delete' }) }

// ========== 演练实施记录 ==========
export function listBusiDrillRecord(query) { return request({ url: '/eme/drillrecord/list', method: 'get', params: query }) }
export function getBusiDrillRecord(guid) { return request({ url: '/eme/drillrecord/' + guid, method: 'get' }) }
export function addBusiDrillRecord(data) { return request({ url: '/eme/drillrecord', method: 'post', data: data }) }
export function updateBusiDrillRecord(data) { return request({ url: '/eme/drillrecord', method: 'put', data: data }) }
export function delBusiDrillRecord(guids) { return request({ url: '/eme/drillrecord/' + guids, method: 'delete' }) }

// ========== 安全生产责任保险评估 ==========
export function listBusiInsureEva(query) { return request({ url: '/eme/insureeva/list', method: 'get', params: query }) }
export function getBusiInsureEva(guid) { return request({ url: '/eme/insureeva/' + guid, method: 'get' }) }
export function addBusiInsureEva(data) { return request({ url: '/eme/insureeva', method: 'post', data: data }) }
export function updateBusiInsureEva(data) { return request({ url: '/eme/insureeva', method: 'put', data: data }) }
export function delBusiInsureEva(guids) { return request({ url: '/eme/insureeva/' + guids, method: 'delete' }) }

// ========== 应急预案统计 ==========
export function listBusiPlanCount(query) { return request({ url: '/eme/plancount/list', method: 'get', params: query }) }
export function getBusiPlanCount(guid) { return request({ url: '/eme/plancount/' + guid, method: 'get' }) }
export function addBusiPlanCount(data) { return request({ url: '/eme/plancount', method: 'post', data: data }) }
export function updateBusiPlanCount(data) { return request({ url: '/eme/plancount', method: 'put', data: data }) }
export function delBusiPlanCount(guids) { return request({ url: '/eme/plancount/' + guids, method: 'delete' }) }

// ========== 预案信息公开 ==========
export function listBusiPlanDisclosure(query) { return request({ url: '/eme/plandisclosure/list', method: 'get', params: query }) }
export function getBusiPlanDisclosure(guid) { return request({ url: '/eme/plandisclosure/' + guid, method: 'get' }) }
export function addBusiPlanDisclosure(data) { return request({ url: '/eme/plandisclosure', method: 'post', data: data }) }
export function updateBusiPlanDisclosure(data) { return request({ url: '/eme/plandisclosure', method: 'put', data: data }) }
export function delBusiPlanDisclosure(guids) { return request({ url: '/eme/plandisclosure/' + guids, method: 'delete' }) }

// ========== 应急预案评估 ==========
export function listBusiPlanEva(query) { return request({ url: '/eme/planeva/list', method: 'get', params: query }) }
export function getBusiPlanEva(guid) { return request({ url: '/eme/planeva/' + guid, method: 'get' }) }
export function addBusiPlanEva(data) { return request({ url: '/eme/planeva', method: 'post', data: data }) }
export function updateBusiPlanEva(data) { return request({ url: '/eme/planeva', method: 'put', data: data }) }
export function delBusiPlanEva(guids) { return request({ url: '/eme/planeva/' + guids, method: 'delete' }) }

// ========== 应急预案定期评估 ==========
export function listBusiRegularEvalu(query) { return request({ url: '/eme/regularevalu/list', method: 'get', params: query }) }
export function getBusiRegularEvalu(guid) { return request({ url: '/eme/regularevalu/' + guid, method: 'get' }) }
export function addBusiRegularEvalu(data) { return request({ url: '/eme/regularevalu', method: 'post', data: data }) }
export function updateBusiRegularEvalu(data) { return request({ url: '/eme/regularevalu', method: 'put', data: data }) }
export function delBusiRegularEvalu(guids) { return request({ url: '/eme/regularevalu/' + guids, method: 'delete' }) }

// ========== 应急预案评审信息 ==========
export function listBusiReviewInfo(query) { return request({ url: '/eme/reviewinfo/list', method: 'get', params: query }) }
export function getBusiReviewInfo(guid) { return request({ url: '/eme/reviewinfo/' + guid, method: 'get' }) }
export function addBusiReviewInfo(data) { return request({ url: '/eme/reviewinfo', method: 'post', data: data }) }
export function updateBusiReviewInfo(data) { return request({ url: '/eme/reviewinfo', method: 'put', data: data }) }
export function delBusiReviewInfo(guids) { return request({ url: '/eme/reviewinfo/' + guids, method: 'delete' }) }

// ========== 应急物资储备 ==========
export function listBusiSuppliesReserve(query) { return request({ url: '/eme/suppliesreserve/list', method: 'get', params: query }) }
export function getBusiSuppliesReserve(guid) { return request({ url: '/eme/suppliesreserve/' + guid, method: 'get' }) }
export function addBusiSuppliesReserve(data) { return request({ url: '/eme/suppliesreserve', method: 'post', data: data }) }
export function updateBusiSuppliesReserve(data) { return request({ url: '/eme/suppliesreserve', method: 'put', data: data }) }
export function delBusiSuppliesReserve(guids) { return request({ url: '/eme/suppliesreserve/' + guids, method: 'delete' }) }

// ========== 应急救援队伍 ==========
export function listBusiTeamInfo(query) { return request({ url: '/eme/teaminfo/list', method: 'get', params: query }) }
export function getBusiTeamInfo(guid) { return request({ url: '/eme/teaminfo/' + guid, method: 'get' }) }
export function addBusiTeamInfo(data) { return request({ url: '/eme/teaminfo', method: 'post', data: data }) }
export function updateBusiTeamInfo(data) { return request({ url: '/eme/teaminfo', method: 'put', data: data }) }
export function delBusiTeamInfo(guids) { return request({ url: '/eme/teaminfo/' + guids, method: 'delete' }) }

// ========== 应急预案培训记录 ==========
export function listBusiTrainRecord(query) { return request({ url: '/eme/trainrecord/list', method: 'get', params: query }) }
export function getBusiTrainRecord(guid) { return request({ url: '/eme/trainrecord/' + guid, method: 'get' }) }
export function addBusiTrainRecord(data) { return request({ url: '/eme/trainrecord', method: 'post', data: data }) }
export function updateBusiTrainRecord(data) { return request({ url: '/eme/trainrecord', method: 'put', data: data }) }
export function delBusiTrainRecord(guids) { return request({ url: '/eme/trainrecord/' + guids, method: 'delete' }) }
