import request from '@/common/request.js' /** * 获取考试列表 * @param {Object} data */ export function coursePaging(data) { return request.post('/api/course/course/user-paging', data); } /** * 获取考试详情 * @param {Object} id */ export function fetchDetail(id) { return request.post('/api/course/course/detail', { id: id}); } /** * 课程文件列表 * @param {Object} id */ export function fetchLearnList(id) { return request.post('/api/course/file/learn/list', { courseId: id}); } /** * 校验文件 * @param {Object} data */ export function apiCheckFile(data) { return request.post('/api/course/file/check-file', data); } /** * 获取基础详情 * @param {} id */ export function simpleDetail(id) { return request.post('/api/course/course/simple-detail', {id: id}); }