dict.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. {
  36. url: '/sysDict/type/software',
  37. type: 'get',
  38. response: config => {
  39. return {
  40. code: 200,
  41. msg: 'success',
  42. data: [
  43. { 'id': 1, 'value': '1', 'label': 'Type1', 'sort': 1 },
  44. { 'id': 2, 'value': '2', 'label': 'Type2', 'sort': 2 },
  45. { 'id': 3, 'value': '3', 'label': 'Type3', 'sort': 3 },
  46. { 'id': 4, 'value': '4', 'label': 'Type4', 'sort': 4 }
  47. ]
  48. }
  49. }
  50. }
  51. ]