import { reportApi } from '@services'

export default class ReportAction {
  /* 获取学术报告列表 */
  getReportList () { return reportApi.getReportList().then(res => res) }
  /* 获取学术活动列表 */
  getReportActiveList () { return reportApi.getReportActiveList().then(res => res) }
  /* 提交活动申请 */
  submitReportActive (obj) { return reportApi.submitReportActive(obj).then(res => res) }
  /* 获取活动详情 */
  getReportActive (rid) { return reportApi.getReportActive(rid).then(res => res) }
  /* 修改活动申请 */
  updateReportActive (rid, obj) { return reportApi.updateReportActive(rid, obj).then(res => res) }
  /* 删除活动申请 */
  deleteReportActive (rid) { return reportApi.deleteReportActive(rid).then(res => res) }
  /* 获取活动相关的学术报告 */
  getReportListAll (obj) { return reportApi.getReportListAll(obj.rid).then(res => res) }
  /* 提交学术报告 */
  submitReport (rid, obj) { return reportApi.submitReport(rid, obj).then(res => res) }
  /* 获取报告详情 */
  getSubmitReport (rid, reid) { return reportApi.getSubmitReport(rid, reid).then(res => res) }
  /* 更新学术报告 */
  updateSubmitReport (rid, reid, obj) { return reportApi.updateSubmitReport(rid, reid, obj).then(res => res) }
  /* 删除学术报告 */
  deleteSubmitReport (rid, reid) { return reportApi.deleteSubmitReport(rid, reid).then(res => res) }
  /* 获取事务类型 */
  getAffairsType () { return reportApi.getAffairsType().then(res => res) }
  /* 获取事务列表内容 */
  getAffairsData (obj) { return reportApi.getAffairsData(obj).then(res => res) }
  /* 提交事务申请 */
  submitLearning (obj) { return reportApi.submitLearning(obj).then(res => res) }
  /* 删除事务 */
  deleteAffairs (reid) { return reportApi.deleteAffairs(reid).then(res => res) }
  /* 获取事务详情 */
  getAffairsDetails (rid) { return reportApi.getAffairsDetails(rid).then(res => res) }
  /* 修改事务 */
  updateAffairs (rid, obj) { return reportApi.updateAffairs(rid, obj).then(res => res) }
  /* 重修图片上传 */
  uploadFile (obj) { return reportApi.uploadFile(obj).then(res => res) }
}
