dict.js 937 B

1234567891011121314151617181920212223242526272829303132333435
  1. module.exports = [
  2. // user login
  3. {
  4. url: '/sysDict/type/app_type',
  5. type: 'get',
  6. response: config => {
  7. return {
  8. code: 200,
  9. msg: 'success',
  10. data: [
  11. { 'id': 1, 'value': '1', 'label': 'Type1', 'sort': 1 },
  12. { 'id': 2, 'value': '2', 'label': 'Type2', 'sort': 2 },
  13. { 'id': 3, 'value': '3', 'label': 'Type3', 'sort': 3 },
  14. { 'id': 4, 'value': '4', 'label': 'Type4', 'sort': 4 }
  15. ]
  16. }
  17. }
  18. },
  19. {
  20. url: '/sysDict/type/bisiness_type',
  21. type: 'get',
  22. response: config => {
  23. return {
  24. code: 200,
  25. msg: 'success',
  26. data: [
  27. { 'id': 1, 'value': '1', 'label': 'Type1', 'sort': 1 },
  28. { 'id': 2, 'value': '2', 'label': 'Type2', 'sort': 2 },
  29. { 'id': 3, 'value': '3', 'label': 'Type3', 'sort': 3 },
  30. { 'id': 4, 'value': '4', 'label': 'Type4', 'sort': 4 }
  31. ]
  32. }
  33. }
  34. }
  35. ]