1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- import BaseStore from '@src/stores/base';
- export default class SentenceStore extends BaseStore {
-
- getInfo() {
- return this.apiGet('/sentence/info');
- }
-
- active(code) {
- return this.apiPut('/sentence/active', { code });
- }
-
- listArticle() {
- return this.apiGet('/sentence/article/list');
- }
-
- detailArticle(articleId) {
- return this.apiGet('/sentence/article/detail', { articleId });
- }
-
- updateProgress(chapter, part, progress, time, currentChapter, currentPart) {
- return this.apiPut('/sentence/article/progress', { chapter, part, progress, time, currentChapter, currentPart });
- }
-
- listPaper() {
- return this.apiGet('/sentence/paper/list');
- }
- }
- export const Sentence = new SentenceStore({ key: 'sentence' });
|