123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- 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' });
|