warn.js 610 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. const path = "/api/warn";
  2. const method = "GET";
  3. const respData = {
  4. data: [
  5. {
  6. id:'1',
  7. userName: "xingqiao",
  8. departmentName: "数据部",
  9. role:"开发"
  10. },
  11. {
  12. id:'2',
  13. userName: "ltt",
  14. departmentName: "数据部",
  15. role:"开发"
  16. },
  17. {
  18. id:'3',
  19. userName: "tt",
  20. departmentName: "数据部",
  21. role:"产品"
  22. }
  23. ],
  24. resultCode: "0",
  25. resultMsg: "string",
  26. };
  27. module.exports = [
  28. {
  29. request: {
  30. method,
  31. path,
  32. },
  33. response: {
  34. statusCode: 200,
  35. body: JSON.stringify(respData),
  36. },
  37. },
  38. ];