question.js 1018 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import BaseStore from '@src/stores/base';
  2. export default class QuestionStore extends BaseStore {
  3. searchNo(params) {
  4. return this.apiPost('/question/search/no', params);
  5. }
  6. searchStem(params) {
  7. return this.apiPost('/question/search/stem', params);
  8. }
  9. listNo(params) {
  10. return this.apiPost('/question/list/no', params);
  11. }
  12. addNo(params) {
  13. return this.apiPost('/question/add/no', params);
  14. }
  15. delNo(params) {
  16. return this.apiDel('/question/delete/no', params);
  17. }
  18. add(params) {
  19. return this.apiPost('/question/add', params);
  20. }
  21. edit(params) {
  22. return this.apiPut('/question/edit', params);
  23. }
  24. get(params) {
  25. return this.apiGet('/question/detail', params);
  26. }
  27. listAsk(params) {
  28. return this.apiGet('/question/ask/list', params);
  29. }
  30. editAsk(params) {
  31. return this.apiPut('/question/ask/edit', params);
  32. }
  33. getAsk(params) {
  34. return this.apiGet('/question/ask/detail', params);
  35. }
  36. }
  37. export const Question = new QuestionStore({ key: 'question' });