import request from '@/apis/request.js' const { get, post } = request export const getSchoolCourseAuthority = () => { return get('nakadai/nakadai/curriculum/getSchoolCourseAuthority') } export const recentUse = data => { return post('nakadai/nakadai/curriculum/recentUse', data) } export const schoolCourse = data => { return get('nakadai/nakadai/curriculum/schoolCourse', data) } export const queryChaptersAndSubsections = id => { return get('nakadai/nakadai/curriculum/chapter/queryChaptersAndSubsections/' + id) } export const curriculumDetail = (cid, mallId) => { return post(`nakadai/nakadai/curriculum/curriculumDetail?cid=${cid}&mallId=${mallId}`) } export const queryPracticeByStudent = data => { return post('occupationlab/occupationlab/achievement/queryPracticeByStudent', data) } export const queryAssessmentByStudent = data => { return post('occupationlab/occupationlab/achievement/queryAssessmentByStudent', data) } export const practiceByStudentDetail = data => { return post(`occupationlab/occupationlab/achievement/practiceByStudentDetail?curriculumId=${data.cid}&projectId=${data.projectId}&paperId=${data.paperId}&pageNum=${data.page}&pageSize=${data.pageSize}`) } export const experimentOverview = () => { return get('occupationlab/occupationlab/achievement/experimentOverview') } export const getSchoolEffectiveCourse = () => { return get('nakadai/nakadai/curriculum/getSchoolEffectiveCourse') }