123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- import BaseStore from '@src/stores/base';
- export default class MyStore extends BaseStore {
-
- bindEmail(email) {
- return this.apiPost('/auth/email', { email });
- }
-
- editInfo(info) {
- return this.apiPost('/auth/info', { ...info });
- }
-
- real(file) {
- return this.apiForm('/auth/real', { file });
- }
-
- message(page, size, type, read) {
- return this.apiGet('/auth/message', { page, size, type, read });
- }
-
- readAllMessage() {
- return this.apiPut('/auth/message/read', { all: true });
- }
-
- readMessage(id) {
- return this.apiPut('/auth/message/read', { all: false, id });
- }
-
- editPrepare(info) {
- return this.apiPut('/auth/prepare', { ...info });
- }
-
- getPrepare() {
- return this.apiGet('/auth/prepare');
- }
-
- getStudy(date) {
- return this.apiGet('/auth/study', { date });
- }
-
- addCollect(module, questionNoId) {
- return this.apiPut('/auth/collect', { module, questionNoId });
- }
-
- delCollect(module, questionNoId) {
- return this.apiDel('/auth/collect', { module, id: questionNoId });
- }
-
- bindCollect(ids) {
- return this.apiPost('/auth/collect/bind', { questionNoIds: ids });
- }
-
- listCollect(module, type, page, size, startTime, endTime, order, direction) {
- return this.apiGet('/auth/collect/question', { module, type, page, size, startTime, endTime, order, direction });
- }
-
- listError(module, type, page, size) {
- return this.apiGet('/auth/error/list', { module, type, page, size });
- }
-
- bindError(ids, times) {
- return this.apiPost('/auth/error/bind', { questionNoIds: ids, filterTimes: times });
- }
-
- clearError(ids) {
- return this.apiPost('/auth/error/clear', { questionNoIds: ids });
- }
-
- updateNote(questionNoId, content) {
- return this.apiPut('/auth/note', { questionNoId, content });
- }
-
- noteList(module, type, page, size, startTime, endTime, order, direction) {
- return this.apiGet('/auth/note/list', { module, type, page, size, startTime, endTime, order, direction });
- }
-
- reportList(module, type, page, size, startTime, endTime, order, direction) {
- return this.apiGet('/auth/report/list', { module, type, page, size, startTime, endTime, order, direction });
- }
- }
- export const My = new MyStore({ key: 'my' });
|