import request from '@/utils/request'

// ========== 三类人员信息 ==========
export function listObjTts(query) {
  return request({ url: '/ttsa/objtts/list', method: 'get', params: query })
}
export function getObjTts(guid) {
  return request({ url: '/ttsa/objtts/' + guid, method: 'get' })
}
export function addObjTts(data) {
  return request({ url: '/ttsa/objtts', method: 'post', data: data })
}
export function updateObjTts(data) {
  return request({ url: '/ttsa/objtts', method: 'put', data: data })
}
export function delObjTts(guids) {
  return request({ url: '/ttsa/objtts/' + guids, method: 'delete' })
}

// ========== 安全考核申请 ==========
export function listObjTtsa(query) {
  return request({ url: '/ttsa/objttsa/list', method: 'get', params: query })
}
export function getObjTtsa(guid) {
  return request({ url: '/ttsa/objttsa/' + guid, method: 'get' })
}
export function addObjTtsa(data) {
  return request({ url: '/ttsa/objttsa', method: 'post', data: data })
}
export function updateObjTtsa(data) {
  return request({ url: '/ttsa/objttsa', method: 'put', data: data })
}
export function delObjTtsa(guids) {
  return request({ url: '/ttsa/objttsa/' + guids, method: 'delete' })
}

// ========== 批量考核申请 ==========
export function listObjTtsaExamAppl(query) {
  return request({ url: '/ttsa/objttsaexamappl/list', method: 'get', params: query })
}
export function getObjTtsaExamAppl(guid) {
  return request({ url: '/ttsa/objttsaexamappl/' + guid, method: 'get' })
}
export function addObjTtsaExamAppl(data) {
  return request({ url: '/ttsa/objttsaexamappl', method: 'post', data: data })
}
export function updateObjTtsaExamAppl(data) {
  return request({ url: '/ttsa/objttsaexamappl', method: 'put', data: data })
}
export function delObjTtsaExamAppl(guids) {
  return request({ url: '/ttsa/objttsaexamappl/' + guids, method: 'delete' })
}

// ========== 三类人员证书 ==========
export function listBisTtsaCert(query) {
  return request({ url: '/ttsa/ttsacert/list', method: 'get', params: query })
}
export function getBisTtsaCert(guid) {
  return request({ url: '/ttsa/ttsacert/' + guid, method: 'get' })
}
export function addBisTtsaCert(data) {
  return request({ url: '/ttsa/ttsacert', method: 'post', data: data })
}
export function updateBisTtsaCert(data) {
  return request({ url: '/ttsa/ttsacert', method: 'put', data: data })
}
export function delBisTtsaCert(guids) {
  return request({ url: '/ttsa/ttsacert/' + guids, method: 'delete' })
}

// ========== 证书阵列 ==========
export function listBisTtsaCertArray(query) {
  return request({ url: '/ttsa/ttsacertarray/list', method: 'get', params: query })
}
export function getBisTtsaCertArray(guid) {
  return request({ url: '/ttsa/ttsacertarray/' + guid, method: 'get' })
}
export function addBisTtsaCertArray(data) {
  return request({ url: '/ttsa/ttsacertarray', method: 'post', data: data })
}
export function updateBisTtsaCertArray(data) {
  return request({ url: '/ttsa/ttsacertarray', method: 'put', data: data })
}
export function delBisTtsaCertArray(guids) {
  return request({ url: '/ttsa/ttsacertarray/' + guids, method: 'delete' })
}

// ========== 证书变更申请 ==========
export function listBisTtsaCertChaAppl(query) {
  return request({ url: '/ttsa/ttsacertchaappl/list', method: 'get', params: query })
}
export function getBisTtsaCertChaAppl(guid) {
  return request({ url: '/ttsa/ttsacertchaappl/' + guid, method: 'get' })
}
export function addBisTtsaCertChaAppl(data) {
  return request({ url: '/ttsa/ttsacertchaappl', method: 'post', data: data })
}
export function updateBisTtsaCertChaAppl(data) {
  return request({ url: '/ttsa/ttsacertchaappl', method: 'put', data: data })
}
export function delBisTtsaCertChaAppl(guids) {
  return request({ url: '/ttsa/ttsacertchaappl/' + guids, method: 'delete' })
}

// ========== 单位变更 ==========
export function listBisTtsaCertChaComp(query) {
  return request({ url: '/ttsa/ttsacertchacomp/list', method: 'get', params: query })
}
export function getBisTtsaCertChaComp(guid) {
  return request({ url: '/ttsa/ttsacertchacomp/' + guid, method: 'get' })
}
export function addBisTtsaCertChaComp(data) {
  return request({ url: '/ttsa/ttsacertchacomp', method: 'post', data: data })
}
export function updateBisTtsaCertChaComp(data) {
  return request({ url: '/ttsa/ttsacertchacomp', method: 'put', data: data })
}
export function delBisTtsaCertChaComp(guids) {
  return request({ url: '/ttsa/ttsacertchacomp/' + guids, method: 'delete' })
}

// ========== 遗失变更 ==========
export function listBisTtsaCertChaLost(query) {
  return request({ url: '/ttsa/ttsacertchalost/list', method: 'get', params: query })
}
export function getBisTtsaCertChaLost(guid) {
  return request({ url: '/ttsa/ttsacertchalost/' + guid, method: 'get' })
}
export function addBisTtsaCertChaLost(data) {
  return request({ url: '/ttsa/ttsacertchalost', method: 'post', data: data })
}
export function updateBisTtsaCertChaLost(data) {
  return request({ url: '/ttsa/ttsacertchalost', method: 'put', data: data })
}
export function delBisTtsaCertChaLost(guids) {
  return request({ url: '/ttsa/ttsacertchalost/' + guids, method: 'delete' })
}

// ========== 名称变更 ==========
export function listBisTtsaCertChaName(query) {
  return request({ url: '/ttsa/ttsacertchaname/list', method: 'get', params: query })
}
export function getBisTtsaCertChaName(guid) {
  return request({ url: '/ttsa/ttsacertchaname/' + guid, method: 'get' })
}
export function addBisTtsaCertChaName(data) {
  return request({ url: '/ttsa/ttsacertchaname', method: 'post', data: data })
}
export function updateBisTtsaCertChaName(data) {
  return request({ url: '/ttsa/ttsacertchaname', method: 'put', data: data })
}
export function delBisTtsaCertChaName(guids) {
  return request({ url: '/ttsa/ttsacertchaname/' + guids, method: 'delete' })
}

// ========== 人员变更 ==========
export function listBisTtsaCertChaPers(query) {
  return request({ url: '/ttsa/ttsacertchapers/list', method: 'get', params: query })
}
export function getBisTtsaCertChaPers(guid) {
  return request({ url: '/ttsa/ttsacertchapers/' + guid, method: 'get' })
}
export function addBisTtsaCertChaPers(data) {
  return request({ url: '/ttsa/ttsacertchapers', method: 'post', data: data })
}
export function updateBisTtsaCertChaPers(data) {
  return request({ url: '/ttsa/ttsacertchapers', method: 'put', data: data })
}
export function delBisTtsaCertChaPers(guids) {
  return request({ url: '/ttsa/ttsacertchapers/' + guids, method: 'delete' })
}

// ========== 调动变更 ==========
export function listBisTtsaCertChaTran(query) {
  return request({ url: '/ttsa/ttsacertchatran/list', method: 'get', params: query })
}
export function getBisTtsaCertChaTran(guid) {
  return request({ url: '/ttsa/ttsacertchatran/' + guid, method: 'get' })
}
export function addBisTtsaCertChaTran(data) {
  return request({ url: '/ttsa/ttsacertchatran', method: 'post', data: data })
}
export function updateBisTtsaCertChaTran(data) {
  return request({ url: '/ttsa/ttsacertchatran', method: 'put', data: data })
}
export function delBisTtsaCertChaTran(guids) {
  return request({ url: '/ttsa/ttsacertchatran/' + guids, method: 'delete' })
}

// ========== 证书重新申请 ==========
export function listBisTtsaCertReisAppl(query) {
  return request({ url: '/ttsa/ttsacertreisappl/list', method: 'get', params: query })
}
export function getBisTtsaCertReisAppl(guid) {
  return request({ url: '/ttsa/ttsacertreisappl/' + guid, method: 'get' })
}
export function addBisTtsaCertReisAppl(data) {
  return request({ url: '/ttsa/ttsacertreisappl', method: 'post', data: data })
}
export function updateBisTtsaCertReisAppl(data) {
  return request({ url: '/ttsa/ttsacertreisappl', method: 'put', data: data })
}
export function delBisTtsaCertReisAppl(guids) {
  return request({ url: '/ttsa/ttsacertreisappl/' + guids, method: 'delete' })
}

// ========== 证书撤销申请 ==========
export function listBisTtsaCertRevAppl(query) {
  return request({ url: '/ttsa/ttsacertrevappl/list', method: 'get', params: query })
}
export function getBisTtsaCertRevAppl(guid) {
  return request({ url: '/ttsa/ttsacertrevappl/' + guid, method: 'get' })
}
export function addBisTtsaCertRevAppl(data) {
  return request({ url: '/ttsa/ttsacertrevappl', method: 'post', data: data })
}
export function updateBisTtsaCertRevAppl(data) {
  return request({ url: '/ttsa/ttsacertrevappl', method: 'put', data: data })
}
export function delBisTtsaCertRevAppl(guids) {
  return request({ url: '/ttsa/ttsacertrevappl/' + guids, method: 'delete' })
}

// ========== 证书延期申请 ==========
export function listBisTtsaCeriExtApll(query) {
  return request({ url: '/ttsa/ttsaceriextapll/list', method: 'get', params: query })
}
export function getBisTtsaCeriExtApll(guid) {
  return request({ url: '/ttsa/ttsaceriextapll/' + guid, method: 'get' })
}
export function addBisTtsaCeriExtApll(data) {
  return request({ url: '/ttsa/ttsaceriextapll', method: 'post', data: data })
}
export function updateBisTtsaCeriExtApll(data) {
  return request({ url: '/ttsa/ttsaceriextapll', method: 'put', data: data })
}
export function delBisTtsaCeriExtApll(guids) {
  return request({ url: '/ttsa/ttsaceriextapll/' + guids, method: 'delete' })
}

// ========== 考核计划 ==========
export function listBisTtsaExamPlan(query) {
  return request({ url: '/ttsa/ttsaexamplan/list', method: 'get', params: query })
}
export function getBisTtsaExamPlan(guid) {
  return request({ url: '/ttsa/ttsaexamplan/' + guid, method: 'get' })
}
export function addBisTtsaExamPlan(data) {
  return request({ url: '/ttsa/ttsaexamplan', method: 'post', data: data })
}
export function updateBisTtsaExamPlan(data) {
  return request({ url: '/ttsa/ttsaexamplan', method: 'put', data: data })
}
export function delBisTtsaExamPlan(guids) {
  return request({ url: '/ttsa/ttsaexamplan/' + guids, method: 'delete' })
}

// ========== 试卷 ==========
export function listBisTtsaPaper(query) {
  return request({ url: '/ttsa/ttsapaper/list', method: 'get', params: query })
}
export function getBisTtsaPaper(guid) {
  return request({ url: '/ttsa/ttsapaper/' + guid, method: 'get' })
}
export function addBisTtsaPaper(data) {
  return request({ url: '/ttsa/ttsapaper', method: 'post', data: data })
}
export function updateBisTtsaPaper(data) {
  return request({ url: '/ttsa/ttsapaper', method: 'put', data: data })
}
export function delBisTtsaPaper(guids) {
  return request({ url: '/ttsa/ttsapaper/' + guids, method: 'delete' })
}

// ========== 试题 ==========
export function listBisTtsaTque(query) {
  return request({ url: '/ttsa/ttsatque/list', method: 'get', params: query })
}
export function getBisTtsaTque(guid) {
  return request({ url: '/ttsa/ttsatque/' + guid, method: 'get' })
}
export function addBisTtsaTque(data) {
  return request({ url: '/ttsa/ttsatque', method: 'post', data: data })
}
export function updateBisTtsaTque(data) {
  return request({ url: '/ttsa/ttsatque', method: 'put', data: data })
}
export function delBisTtsaTque(guids) {
  return request({ url: '/ttsa/ttsatque/' + guids, method: 'delete' })
}

// ========== 试题选项 ==========
export function listBisTtsaTqueOpt(query) {
  return request({ url: '/ttsa/ttsatqueopt/list', method: 'get', params: query })
}
export function getBisTtsaTqueOpt(guid) {
  return request({ url: '/ttsa/ttsatqueopt/' + guid, method: 'get' })
}
export function addBisTtsaTqueOpt(data) {
  return request({ url: '/ttsa/ttsatqueopt', method: 'post', data: data })
}
export function updateBisTtsaTqueOpt(data) {
  return request({ url: '/ttsa/ttsatqueopt', method: 'put', data: data })
}
export function delBisTtsaTqueOpt(guids) {
  return request({ url: '/ttsa/ttsatqueopt/' + guids, method: 'delete' })
}

// ========== 考试成绩 ==========
export function listBisTtsaScore(query) {
  return request({ url: '/ttsa/ttsascore/list', method: 'get', params: query })
}
export function getBisTtsaScore(guid) {
  return request({ url: '/ttsa/ttsascore/' + guid, method: 'get' })
}
export function addBisTtsaScore(data) {
  return request({ url: '/ttsa/ttsascore', method: 'post', data: data })
}
export function updateBisTtsaScore(data) {
  return request({ url: '/ttsa/ttsascore', method: 'put', data: data })
}
export function delBisTtsaScore(guids) {
  return request({ url: '/ttsa/ttsascore/' + guids, method: 'delete' })
}

// ========== 考核记录 ==========
export function listBisTtsaRec(query) {
  return request({ url: '/ttsa/ttsarec/list', method: 'get', params: query })
}
export function getBisTtsaRec(guid) {
  return request({ url: '/ttsa/ttsarec/' + guid, method: 'get' })
}
export function addBisTtsaRec(data) {
  return request({ url: '/ttsa/ttsarec', method: 'post', data: data })
}
export function updateBisTtsaRec(data) {
  return request({ url: '/ttsa/ttsarec', method: 'put', data: data })
}
export function delBisTtsaRec(guids) {
  return request({ url: '/ttsa/ttsarec/' + guids, method: 'delete' })
}

// ========== 考核培训 ==========
export function listBisTtsaTrain(query) {
  return request({ url: '/ttsa/ttsatrain/list', method: 'get', params: query })
}
export function getBisTtsaTrain(guid) {
  return request({ url: '/ttsa/ttsatrain/' + guid, method: 'get' })
}
export function addBisTtsaTrain(data) {
  return request({ url: '/ttsa/ttsatrain', method: 'post', data: data })
}
export function updateBisTtsaTrain(data) {
  return request({ url: '/ttsa/ttsatrain', method: 'put', data: data })
}
export function delBisTtsaTrain(guids) {
  return request({ url: '/ttsa/ttsatrain/' + guids, method: 'delete' })
}

// ========== 培训人员 ==========
export function listBisTtsaTrainPers(query) {
  return request({ url: '/ttsa/ttsatrainpers/list', method: 'get', params: query })
}
export function getBisTtsaTrainPers(guid) {
  return request({ url: '/ttsa/ttsatrainpers/' + guid, method: 'get' })
}
export function addBisTtsaTrainPers(data) {
  return request({ url: '/ttsa/ttsatrainpers', method: 'post', data: data })
}
export function updateBisTtsaTrainPers(data) {
  return request({ url: '/ttsa/ttsatrainpers', method: 'put', data: data })
}
export function delBisTtsaTrainPers(guids) {
  return request({ url: '/ttsa/ttsatrainpers/' + guids, method: 'delete' })
}

// ========== 考核指定 ==========
export function listBisTtsaDesign(query) {
  return request({ url: '/ttsa/ttsadesign/list', method: 'get', params: query })
}
export function getBisTtsaDesign(guid) {
  return request({ url: '/ttsa/ttsadesign/' + guid, method: 'get' })
}
export function addBisTtsaDesign(data) {
  return request({ url: '/ttsa/ttsadesign', method: 'post', data: data })
}
export function updateBisTtsaDesign(data) {
  return request({ url: '/ttsa/ttsadesign', method: 'put', data: data })
}
export function delBisTtsaDesign(guids) {
  return request({ url: '/ttsa/ttsadesign/' + guids, method: 'delete' })
}

// ========== 指定明细 ==========
export function listBisTtsaDesigndetail(query) {
  return request({ url: '/ttsa/ttsadesigndetail/list', method: 'get', params: query })
}
export function getBisTtsaDesigndetail(guid) {
  return request({ url: '/ttsa/ttsadesigndetail/' + guid, method: 'get' })
}
export function addBisTtsaDesigndetail(data) {
  return request({ url: '/ttsa/ttsadesigndetail', method: 'post', data: data })
}
export function updateBisTtsaDesigndetail(data) {
  return request({ url: '/ttsa/ttsadesigndetail', method: 'put', data: data })
}
export function delBisTtsaDesigndetail(guids) {
  return request({ url: '/ttsa/ttsadesigndetail/' + guids, method: 'delete' })
}

// ========== 指定考试关联 ==========
export function listBisTtsaDesignExamRel(query) {
  return request({ url: '/ttsa/ttsadesignexamrel/list', method: 'get', params: query })
}
export function getBisTtsaDesignExamRel(guid) {
  return request({ url: '/ttsa/ttsadesignexamrel/' + guid, method: 'get' })
}
export function addBisTtsaDesignExamRel(data) {
  return request({ url: '/ttsa/ttsadesignexamrel', method: 'post', data: data })
}
export function updateBisTtsaDesignExamRel(data) {
  return request({ url: '/ttsa/ttsadesignexamrel', method: 'put', data: data })
}
export function delBisTtsaDesignExamRel(guids) {
  return request({ url: '/ttsa/ttsadesignexamrel/' + guids, method: 'delete' })
}

// ========== 考核企业 ==========
export function listBisTtsaExamEnte(query) {
  return request({ url: '/ttsa/ttsaexamente/list', method: 'get', params: query })
}
export function getBisTtsaExamEnte(guid) {
  return request({ url: '/ttsa/ttsaexamente/' + guid, method: 'get' })
}
export function addBisTtsaExamEnte(data) {
  return request({ url: '/ttsa/ttsaexamente', method: 'post', data: data })
}
export function updateBisTtsaExamEnte(data) {
  return request({ url: '/ttsa/ttsaexamente', method: 'put', data: data })
}
export function delBisTtsaExamEnte(guids) {
  return request({ url: '/ttsa/ttsaexamente/' + guids, method: 'delete' })
}

// ========== 申请安全元素 ==========
export function listBisTtsaApplWiun(query) {
  return request({ url: '/ttsa/ttsaapplwiun/list', method: 'get', params: query })
}
export function getBisTtsaApplWiun(guid) {
  return request({ url: '/ttsa/ttsaapplwiun/' + guid, method: 'get' })
}
export function addBisTtsaApplWiun(data) {
  return request({ url: '/ttsa/ttsaapplwiun', method: 'post', data: data })
}
export function updateBisTtsaApplWiun(data) {
  return request({ url: '/ttsa/ttsaapplwiun', method: 'put', data: data })
}
export function delBisTtsaApplWiun(guids) {
  return request({ url: '/ttsa/ttsaapplwiun/' + guids, method: 'delete' })
}
