app.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. module.exports = [
  2. // app-list
  3. {
  4. url: '/vue-element-admin/app/get-app-list',
  5. type: 'get',
  6. response: _ => {
  7. return {
  8. code: 0,
  9. message: 'ok',
  10. data: {
  11. current_page: 1,
  12. 'data|5': [{
  13. 'id|+1': 1,
  14. 'name|1': ['展会系统', '后台系统', '后台系统2', '展会系统2', '后台系统3'],
  15. 'short_name|1': ['zhxt', 'htxt', 'zhxt1', 'htxt1'],
  16. 'domain|1': ['http://www.bbshenqian.cn/', 'http://www.baidu.com/']
  17. }],
  18. 'from': 0,
  19. 'last_page': 1,
  20. 'per_page': 10,
  21. 'to': 10,
  22. 'total': 5
  23. }
  24. }
  25. }
  26. },
  27. // edit-app-menus
  28. {
  29. url: '/vue-element-admin/app/edit-app-menus',
  30. type: 'get',
  31. response: _ => {
  32. return {
  33. code: 0,
  34. message: 'ok',
  35. data: {
  36. current_page: 1,
  37. 'data|10': [{
  38. 'id|+1': 1,
  39. 'ver_name|1': ['基础版', '至尊纪念版', '标准2.0版'],
  40. 'name|1': ['展会系统', '后台系统'],
  41. 'price|1': ['200', '2000'],
  42. 'tag|1': ['zhxt', 'htxt'],
  43. 'desc|1': ['基础版拥有一些基础菜单', '至尊纪念版拥有', '标准2.0版拥有'],
  44. 'update_time|1': ['2020-12-19 07:09:48', '2020-12-19 07:09:00', '2015-06-17 05:20:00']
  45. }],
  46. 'from': 0,
  47. 'last_page': 1,
  48. 'per_page': 10,
  49. 'to': 10,
  50. 'total': 20
  51. }
  52. }
  53. }
  54. },
  55. // get-app
  56. {
  57. url: '/vue-element-admin/app/get-app',
  58. type: 'get',
  59. response: _ => {
  60. return {
  61. 'code': 0,
  62. 'message': 'ok',
  63. 'data': {
  64. 'id': 5,
  65. 'short_name': 'kfxt',
  66. 'name': '开发系统',
  67. 'domain': 'http://www.bbshenqian.cn',
  68. 'code': 'kfxt',
  69. 'key': 'kfxt',
  70. 'allow_api': 0,
  71. 'logout_url': 'http://www.bbshenqian.cn/',
  72. 'status': 0,
  73. 'update_time': '2020-12-19 03:40:00',
  74. 'create_time': '2020-12-19 03:14:53'
  75. }
  76. }
  77. }
  78. }
  79. ]