menuManagement.js 940 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. module.exports = [
  2. {
  3. url: "/menuManagement/getTree",
  4. type: "get",
  5. response() {
  6. return {
  7. code: 200,
  8. msg: "success",
  9. totalCount: 999,
  10. data: [
  11. {
  12. id: "root",
  13. label: "全部角色",
  14. children: [
  15. {
  16. id: "@id",
  17. role: "admin",
  18. label: "admin角色",
  19. },
  20. {
  21. id: "@id",
  22. role: "editor",
  23. label: "editor角色",
  24. },
  25. ],
  26. },
  27. ],
  28. };
  29. },
  30. },
  31. {
  32. url: "/menuManagement/doEdit",
  33. type: "post",
  34. response() {
  35. return {
  36. code: 200,
  37. msg: "模拟保存成功",
  38. };
  39. },
  40. },
  41. {
  42. url: "/menuManagement/doDelete",
  43. type: "post",
  44. response() {
  45. return {
  46. code: 200,
  47. msg: "模拟删除成功",
  48. };
  49. },
  50. },
  51. ];