mock.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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. mockApplyListApplyName(data) {
  19. return myRequest({
  20. url: '/mock/apply/listApplyName',
  21. method: 'get',
  22. data
  23. })
  24. },
  25. mockApplyListApplyBusiness(data) {
  26. return myRequest({
  27. url: '/mock/apply/listApplyBusiness',
  28. method: 'get',
  29. data
  30. })
  31. },
  32. mockSubscribe(data) {
  33. return myRequest({
  34. url: '/mock/subscribe',
  35. method: 'post',
  36. data
  37. })
  38. },
  39. mockSubscribeListSubscribe(data) {
  40. return myRequest({
  41. url: '/mock/subscribe/listSubscribe',
  42. method: 'GET',
  43. data
  44. })
  45. },
  46. mockRecord(data) {
  47. return myRequest({
  48. url: '/mock/record',
  49. method: 'post',
  50. data
  51. })
  52. },
  53. mockRecordEdit(data) {
  54. return myRequest({
  55. url: '/mock/record/edit',
  56. method: 'post',
  57. data
  58. })
  59. },
  60. mockWrongRecordWrongNum(data) {
  61. return myRequest({
  62. url:`/mock/wwrong/record/wrongNum/${data}`,
  63. method: 'get'
  64. })
  65. },
  66. goodsListGoodsUserLive(data) {
  67. return myRequest({
  68. url:`/goods/listGoodsUserLive`,
  69. method: 'get',
  70. data
  71. })
  72. },
  73. mockReport(data) {
  74. return myRequest({
  75. url: '/mock/record/'+data,
  76. method: 'get',
  77. })
  78. },
  79. mockWrongRecord(data) {
  80. return myRequest({
  81. url: '/mock/wwrong/record',
  82. data:data,
  83. method: 'POST',
  84. })
  85. },
  86. mockSubscribeEdit(data) {
  87. return myRequest({
  88. url: '/mock/subscribe/edit',
  89. data:data,
  90. method: 'POST',
  91. })
  92. },
  93. mockApplyListMockLive(data) {
  94. return myRequest({
  95. url: '/mock/apply/listMockLive',
  96. data:data,
  97. method: 'get',
  98. })
  99. },
  100. mockSubscribeInfo(data) {
  101. return myRequest({
  102. url: '/mock/subscribe/info/'+data,
  103. method: 'get',
  104. })
  105. },
  106. mockRecordGroupList(data) {
  107. return myRequest({
  108. url: '/mock/record/group_list',
  109. method: 'get',
  110. params:data
  111. })
  112. },
  113. mockRecordList(data) {
  114. return myRequest({
  115. url: '/mock/record/list',
  116. method: 'get',
  117. params:data
  118. })
  119. },
  120. mockApplyMockLiving(data) {
  121. return myRequest({
  122. url: '/mock/apply/mockLiving',
  123. method: 'get',
  124. params:data
  125. })
  126. },
  127. }