import axios from '@/common/services/axios-instance'

class XmSpicProblemServices {
  // 导出模板
  exportItemTemplate(level) {
    return axios({
      method: 'post',
      url: 'api/xcoa-mobile/v1/spicproblem/exportItemTemplate',
      params: { level: Number(level) },
      responseType: 'blob',
    })
  }

  // 导入数据
  importItemTemplate(parentId, groupId, orgId) {
    return axios({
      method: 'post',
      url: 'api/xcoa-mobile/v1/spicproblem/importItemTemplate',
      params: { parentId, groupId, orgId },
    })
  }
}

export default new XmSpicProblemServices()
