examination.js 690 B

1234567891011121314151617181920212223242526272829
  1. import BaseStore from '@src/stores/base';
  2. export default class ExaminationStore extends BaseStore {
  3. allStruct() {
  4. return this.apiGet('/examination/struct/all');
  5. }
  6. addStruct(params) {
  7. return this.apiPost('/examination/struct/add', params);
  8. }
  9. editStruct(params) {
  10. return this.apiPut('/examination/struct/edit', params);
  11. }
  12. delStruct(params) {
  13. return this.apiDel('/examination/struct/delete', params);
  14. }
  15. listPaper(params) {
  16. return this.apiGet('/examination/paper/list', params);
  17. }
  18. listQuestion(params) {
  19. return this.apiGet('/examination/question/list', params);
  20. }
  21. }
  22. export const Examination = new ExaminationStore({ key: 'examination' });