import BaseStore from '@src/stores/base'; export default class CourseStore extends BaseStore { list(params) { return this.apiGet('/course/list', params); } add(params) { return this.apiPost('/course/add', params); } edit(params) { return this.apiPut('/course/edit', params); } get(params) { return this.apiGet('/course/detail', params); } del(params) { return this.apiDel('/course/delete', params); } listAsk(params) { return this.apiGet('/course/ask/list', params); } editAsk(params) { return this.apiPut('/course/ask/edit', params); } getAsk(params) { return this.apiGet('/course/ask/detail', params); } listPackage(params) { return this.apiGet('/course/package/list', params); } addPackage(params) { return this.apiPost('/course/package/add', params); } editPackage(params) { return this.apiPut('/course/package/edit', params); } delPackage(params) { return this.apiDel('/course/package/delete', params); } listData(params) { return this.apiGet('/course/data/list', params); } addData(params) { return this.apiPost('/course/data/add', params); } editData(params) { return this.apiPut('/course/data/edit', params); } getData(params) { return this.apiGet('/course/data/detail', params); } delData(params) { return this.apiDel('/course/data/delete', params); } listDataHistory(params) { return this.apiGet('/course/data/history/list', params); } addDataHistory(params) { return this.apiPost('/course/data/history/add', params); } editDataHistory(params) { return this.apiPut('/course/data/history/edit', params); } delDataHistory(params) { return this.apiDel('/course/data/history/delete', params); } listExperience(params) { return this.apiGet('/course/experience/list', params); } addExperience(params) { return this.apiPost('/course/experience/add', params); } editExperience(params) { return this.apiPut('/course/experience/edit', params); } getExperience(params) { return this.apiGet('/course/experience/detail', params); } delExperience(params) { return this.apiDel('/course/experience/delete', params); } listTeacher(params) { return this.apiGet('/course/teacher/list', params); } addTeacher(params) { return this.apiPost('/course/teacher/add', params); } editTeacher(params) { return this.apiPut('/course/teacher/edit', params); } getTeacher(params) { return this.apiGet('/course/teacher/detail', params); } delTeacher(params) { return this.apiDel('/course/teacher/delete', params); } allNo(params) { return this.apiGet('/course/no/all', params); } addNo(params) { return this.apiPost('/course/no/add', params); } editNo(params) { return this.apiPut('/course/no/edit', params); } getNo(params) { return this.apiGet('/course/no/detail', params); } delNo(params) { return this.apiDel('/course/no/delete', params); } listTime(params) { return this.apiGet('/course/time/list', params); } addTime(params) { return this.apiPost('/course/time/add', params); } editTime(params) { return this.apiPut('/course/time/edit', params); } getTime(params) { return this.apiGet('/course/time/detail', params); } delTime(params) { return this.apiDel('/course/time/delete', params); } listStudentOnline(params) { return this.apiGet('/course/student/online/list', params); } addStudentOnline(params) { return this.apiPost('/course/student/online/add', params); } editStudentOnline(params) { return this.apiPut('/course/student/online/edit', params); } getStudentOnline(params) { return this.apiGet('/course/student/online/detail', params); } delStudentOnline(params) { return this.apiDel('/course/student/online/delete', params); } listStudentVs(params) { return this.apiGet('/course/student/vs/list', params); } addStudentVs(params) { return this.apiPost('/course/student/vs/add', params); } editStudentVs(params) { return this.apiPut('/course/student/vs/edit', params); } getStudentVs(params) { return this.apiGet('/course/student/vs/detail', params); } delStudentVs(params) { return this.apiDel('/course/student/vs/delete', params); } listStudy(params) { return this.apiGet('/course/study/list', params); } } export const Course = new CourseStore({ key: 'course' });