import BaseStore from '@src/stores/base'; export default class TextbookStore extends BaseStore { listPaper(params) { return this.apiGet('/textbook/paper/list', params); } searchQuestion(params) { return this.apiGet('/textbook/question/search', params); } listQuestion(params) { return this.apiGet('/textbook/question/list', params); } getNextQuestion(params) { return this.apiGet('/textbook/question/next', params); } getQuestion(params) { return this.apiGet('/textbook/question/detail', params); } addQuestion(params) { return this.apiPost('/textbook/question/add', params); } editQuestion(params) { return this.apiPut('/textbook/question/edit', params); } delQuestion(params) { return this.apiDel('/textbook/question/delete', params); } listLibrary(params) { return this.apiGet('/textbook/library/list', params); } addLibrary(params) { return this.apiPost('/textbook/library/add', params); } editLibrary(params) { return this.apiPut('/textbook/library/edit', params); } listHistory(params) { return this.apiGet('/textbook/library/history/list', params); } postHistory(params) { return this.apiPost('/textbook/library/history/post', params); } listTopic(params) { return this.apiGet('/textbook/topic/list', params); } addTopic(params) { return this.apiPost('/textbook/topic/add', params); } editTopic(params) { return this.apiPut('/textbook/topic/edit', params); } delTopic(params) { return this.apiDel('/textbook/topic/delete', params); } getTopic(params) { return this.apiGet('/textbook/topic/detail', params); } getNextTopic(params) { return this.apiGet('/textbook/topic/next', params); } } export const Textbook = new TextbookStore({ key: 'textbook' });