import BaseStore from '@src/stores/base'; export default class CourseStore extends BaseStore { /** * 所有vs课程 */ allVs() { return this.apiGet('/course/vs'); } listVideo(params) { return this.apiGet('/course/video/list', params); } simple(courseId) { return this.apiGet('/course/simple', { courseId }); } get(courseId) { return this.apiGet('/course/detail', { courseId }); } listPackage(params) { return this.apiGet('/course/package/list', params); } getPackage(packageId) { return this.apiGet('/course/package/detail', { packageId }); } listData(params) { return this.apiGet('/course/data/list', params); } getData(dataId) { return this.apiGet('/course/data/detail', { dataId }); } } export const Course = new CourseStore({ key: 'course' });