import request from '@/utils/request'

// ========== 培训课程对象 ==========

export function listObjCour(query) {
  return request({ url: '/eutr/objcour/list', method: 'get', params: query })
}

export function getObjCour(guid) {
  return request({ url: '/eutr/objcour/' + guid, method: 'get' })
}

export function addObjCour(data) {
  return request({ url: '/eutr/objcour', method: 'post', data: data })
}

export function updateObjCour(data) {
  return request({ url: '/eutr/objcour', method: 'put', data: data })
}

export function delObjCour(guids) {
  return request({ url: '/eutr/objcour/' + guids, method: 'delete' })
}

// ========== 培训课程类别 ==========

export function listCourCate(query) {
  return request({ url: '/eutr/courcate/list', method: 'get', params: query })
}

export function getCourCate(guid) {
  return request({ url: '/eutr/courcate/' + guid, method: 'get' })
}

export function addCourCate(data) {
  return request({ url: '/eutr/courcate', method: 'post', data: data })
}

export function updateCourCate(data) {
  return request({ url: '/eutr/courcate', method: 'put', data: data })
}

export function delCourCate(guids) {
  return request({ url: '/eutr/courcate/' + guids, method: 'delete' })
}

// ========== 培训课程参与记录 ==========

export function listCourRec(query) {
  return request({ url: '/eutr/courrec/list', method: 'get', params: query })
}

export function getCourRec(guid) {
  return request({ url: '/eutr/courrec/' + guid, method: 'get' })
}

export function addCourRec(data) {
  return request({ url: '/eutr/courrec', method: 'post', data: data })
}

export function updateCourRec(data) {
  return request({ url: '/eutr/courrec', method: 'put', data: data })
}

export function delCourRec(guids) {
  return request({ url: '/eutr/courrec/' + guids, method: 'delete' })
}

// ========== 培训计划 ==========

export function listPlan(query) {
  return request({ url: '/eutr/plan/list', method: 'get', params: query })
}

export function getPlan(guid) {
  return request({ url: '/eutr/plan/' + guid, method: 'get' })
}

export function addPlan(data) {
  return request({ url: '/eutr/plan', method: 'post', data: data })
}

export function updatePlan(data) {
  return request({ url: '/eutr/plan', method: 'put', data: data })
}

export function delPlan(guids) {
  return request({ url: '/eutr/plan/' + guids, method: 'delete' })
}

// ========== 培训记录 ==========

export function listRecord(query) {
  return request({ url: '/eutr/record/list', method: 'get', params: query })
}

export function getRecord(guid) {
  return request({ url: '/eutr/record/' + guid, method: 'get' })
}

export function addRecord(data) {
  return request({ url: '/eutr/record', method: 'post', data: data })
}

export function updateRecord(data) {
  return request({ url: '/eutr/record', method: 'put', data: data })
}

export function delRecord(guids) {
  return request({ url: '/eutr/record/' + guids, method: 'delete' })
}

// ========== 培训考试 ==========

export function listExam(query) {
  return request({ url: '/eutr/exam/list', method: 'get', params: query })
}

export function getExam(guid) {
  return request({ url: '/eutr/exam/' + guid, method: 'get' })
}

export function addExam(data) {
  return request({ url: '/eutr/exam', method: 'post', data: data })
}

export function updateExam(data) {
  return request({ url: '/eutr/exam', method: 'put', data: data })
}

export function delExam(guids) {
  return request({ url: '/eutr/exam/' + guids, method: 'delete' })
}

// ========== 考试策略 ==========

export function listExamStra(query) {
  return request({ url: '/eutr/examstra/list', method: 'get', params: query })
}

export function getExamStra(guid) {
  return request({ url: '/eutr/examstra/' + guid, method: 'get' })
}

export function addExamStra(data) {
  return request({ url: '/eutr/examstra', method: 'post', data: data })
}

export function updateExamStra(data) {
  return request({ url: '/eutr/examstra', method: 'put', data: data })
}

export function delExamStra(guids) {
  return request({ url: '/eutr/examstra/' + guids, method: 'delete' })
}

// ========== 题库 ==========

export function listEq(query) {
  return request({ url: '/eutr/eq/list', method: 'get', params: query })
}

export function getEq(guid) {
  return request({ url: '/eutr/eq/' + guid, method: 'get' })
}

export function addEq(data) {
  return request({ url: '/eutr/eq', method: 'post', data: data })
}

export function updateEq(data) {
  return request({ url: '/eutr/eq', method: 'put', data: data })
}

export function delEq(guids) {
  return request({ url: '/eutr/eq/' + guids, method: 'delete' })
}

// ========== 题目选项 ==========

export function listTqueOpt(query) {
  return request({ url: '/eutr/tqueopt/list', method: 'get', params: query })
}

export function getTqueOpt(guid) {
  return request({ url: '/eutr/tqueopt/' + guid, method: 'get' })
}

export function addTqueOpt(data) {
  return request({ url: '/eutr/tqueopt', method: 'post', data: data })
}

export function updateTqueOpt(data) {
  return request({ url: '/eutr/tqueopt', method: 'put', data: data })
}

export function delTqueOpt(guids) {
  return request({ url: '/eutr/tqueopt/' + guids, method: 'delete' })
}

// ========== 答题记录 ==========

export function listEqAnsw(query) {
  return request({ url: '/eutr/eqansw/list', method: 'get', params: query })
}

export function getEqAnsw(guid) {
  return request({ url: '/eutr/eqansw/' + guid, method: 'get' })
}

export function addEqAnsw(data) {
  return request({ url: '/eutr/eqansw', method: 'post', data: data })
}

export function updateEqAnsw(data) {
  return request({ url: '/eutr/eqansw', method: 'put', data: data })
}

export function delEqAnsw(guids) {
  return request({ url: '/eutr/eqansw/' + guids, method: 'delete' })
}

// ========== 课程试题关联 ==========

export function listCourToEq(query) {
  return request({ url: '/eutr/courtoeq/list', method: 'get', params: query })
}

export function getCourToEq(guid) {
  return request({ url: '/eutr/courtoeq/' + guid, method: 'get' })
}

export function addCourToEq(data) {
  return request({ url: '/eutr/courtoeq', method: 'post', data: data })
}

export function updateCourToEq(data) {
  return request({ url: '/eutr/courtoeq', method: 'put', data: data })
}

export function delCourToEq(guids) {
  return request({ url: '/eutr/courtoeq/' + guids, method: 'delete' })
}

// ========== 课程科目关联 ==========

export function listSubjectOfCour(query) {
  return request({ url: '/eutr/subjectofcour/list', method: 'get', params: query })
}

export function getSubjectOfCour(guid) {
  return request({ url: '/eutr/subjectofcour/' + guid, method: 'get' })
}

export function addSubjectOfCour(data) {
  return request({ url: '/eutr/subjectofcour', method: 'post', data: data })
}

export function updateSubjectOfCour(data) {
  return request({ url: '/eutr/subjectofcour', method: 'put', data: data })
}

export function delSubjectOfCour(guids) {
  return request({ url: '/eutr/subjectofcour/' + guids, method: 'delete' })
}

// ========== 线下培训记录 ==========

export function listOfflRec(query) {
  return request({ url: '/eutr/offlrec/list', method: 'get', params: query })
}

export function getOfflRec(guid) {
  return request({ url: '/eutr/offlrec/' + guid, method: 'get' })
}

export function addOfflRec(data) {
  return request({ url: '/eutr/offlrec', method: 'post', data: data })
}

export function updateOfflRec(data) {
  return request({ url: '/eutr/offlrec', method: 'put', data: data })
}

export function delOfflRec(guids) {
  return request({ url: '/eutr/offlrec/' + guids, method: 'delete' })
}
