elective-generation.js 732 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. const Mock = require('mockjs')
  2. const mockGeneration = 1 // primary
  3. const mockGroups = [1, 2, 3, 9, 10, 11]
  4. module.exports = [
  5. {
  6. url: '/mock/front/report/getElectiveStatus',
  7. type: 'get',
  8. response: config => {
  9. return {
  10. code: 200,
  11. msg: 'success',
  12. data: {
  13. year: 2021,
  14. roundId: 1,
  15. allMatched: false,
  16. currentGeneration: mockGeneration
  17. }
  18. }
  19. }
  20. },
  21. {
  22. url: '/mock/front/report/getElectiveSummary',
  23. type: 'get',
  24. response: config => {
  25. return {
  26. code: 200,
  27. msg: 'success',
  28. 'data|6': [{
  29. year: 2021,
  30. roundId: 1,
  31. roundName: '第X次选科'
  32. }]
  33. }
  34. }
  35. }
  36. ]