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