123456789101112131415161718192021222324 |
- import BaseStore from '@src/stores/base';
- export default class TextbookStore extends BaseStore {
- /**
- * 所有机经信息
- */
- getInfo() {
- return this.apiGet('/textbook/info');
- }
- listYear(year) {
- return this.apiGet('/textbook/year', { year });
- }
- allHistory(subject) {
- return this.apiGet('/textbook/history/all', { subject });
- }
- listTopic({ page, size, latest, qualitys, isOld, order, direction }) {
- return this.apiGet('/textbook/topic/list', { page, size, latest, qualitys, isOld, order, direction });
- }
- }
- export const Textbook = new TextbookStore({ key: 'textbook' });
|