dict.js 549 B

12345678910111213141516171819202122
  1. module.exports = [
  2. // user login
  3. {
  4. url: '/sysDict/type/system_type',
  5. type: 'get',
  6. response: config => {
  7. return {
  8. code: 200,
  9. msg: 'success',
  10. data: {
  11. total: 43,
  12. records: [
  13. { 'id': 1, 'value': '1', 'label': 'Type1', 'sort': 1 },
  14. { 'id': 2, 'value': '2', 'label': 'Type2', 'sort': 2 },
  15. { 'id': 3, 'value': '3', 'label': 'Type3', 'sort': 3 },
  16. { 'id': 4, 'value': '4', 'label': 'Type4', 'sort': 4 }
  17. ]
  18. }
  19. }
  20. }
  21. }
  22. ]