mock.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. import {
  2. myRequest
  3. } from '../request.js'
  4. export default {
  5. mockApplyListApply(data) {
  6. return myRequest({
  7. url: '/mock/apply/listApply',
  8. method: 'get',
  9. data: data
  10. })
  11. },
  12. userSubscribe(data) {
  13. return myRequest({
  14. url: '/user/subscribe/'+data,
  15. method: 'get',
  16. })
  17. },
  18. mockApplyListApplyBusiness(data) {
  19. return myRequest({
  20. url: '/mock/apply/listApplyBusiness',
  21. method: 'get',
  22. })
  23. },
  24. mockSubscribe(data) {
  25. return myRequest({
  26. url: '/mock/subscribe',
  27. method: 'post',
  28. data
  29. })
  30. },
  31. mockSubscribeListSubscribe(data) {
  32. return myRequest({
  33. url: '/mock/subscribe/listSubscribe',
  34. method: 'GET',
  35. data
  36. })
  37. },
  38. mockRecord(data) {
  39. return myRequest({
  40. url: '/mock/record',
  41. method: 'post',
  42. data
  43. })
  44. },
  45. mockRecordEdit(data) {
  46. return myRequest({
  47. url: '/mock/record/edit',
  48. method: 'post',
  49. data
  50. })
  51. },
  52. mockWrongRecordWrongNum(data) {
  53. return myRequest({
  54. url:`/mock/wwrong/record/wrongNum/${data}`,
  55. method: 'get'
  56. })
  57. },
  58. goodsListGoodsUserLive(data) {
  59. return myRequest({
  60. url:`/goods/listGoodsUserLive`,
  61. method: 'get',
  62. data
  63. })
  64. },
  65. mockReport(data) {
  66. return myRequest({
  67. url: '/mock/record/'+data,
  68. method: 'get',
  69. })
  70. },
  71. mockWrongRecord(data) {
  72. return myRequest({
  73. url: '/mock/wwrong/record',
  74. data:data,
  75. method: 'POST',
  76. })
  77. },
  78. }