mock.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. import request from '@/axios'
  2. export default {
  3. mockApplyListApply(data) {
  4. return request({
  5. url: '/mock/apply/listApply',
  6. method: 'get',
  7. params: data
  8. })
  9. },
  10. userSubscribe(data) {
  11. return request({
  12. url: '/user/subscribe/'+data,
  13. method: 'get',
  14. })
  15. },
  16. mockApplyListApplyBusiness(data) {
  17. return request({
  18. url: '/mock/apply/listApplyBusiness',
  19. method: 'get',
  20. })
  21. },
  22. mockSubscribe(data) {
  23. return request({
  24. url: '/mock/subscribe',
  25. method: 'post',
  26. data
  27. })
  28. },
  29. mockSubscribeListSubscribe(data) {
  30. return request({
  31. url: '/mock/subscribe/listSubscribe',
  32. method: 'GET',
  33. params:data
  34. })
  35. },
  36. mockRecord(data) {
  37. return request({
  38. url: '/mock/record',
  39. method: 'post',
  40. data
  41. })
  42. },
  43. mockRecordEdit(data) {
  44. return request({
  45. url: '/mock/record/edit',
  46. method: 'post',
  47. data
  48. })
  49. },
  50. mockWrongRecordWrongNum(data) {
  51. return request({
  52. url:`/mock/wwrong/record/wrongNum/${data}`,
  53. method: 'get'
  54. })
  55. },
  56. mockReport(data) {
  57. return request({
  58. url: '/mock/record/'+data,
  59. method: 'get',
  60. })
  61. },
  62. mockWrongRecord(data) {
  63. return request({
  64. url: '/mock/wwrong/record',
  65. data:data,
  66. method: 'POST',
  67. })
  68. },
  69. mockSubscribeEdit(data) {
  70. return request({
  71. url: '/mock/subscribe/edit',
  72. data:data,
  73. method: 'POST',
  74. })
  75. },
  76. mockApplyListMockLive(data) {
  77. return request({
  78. url: '/mock/apply/listMockLive',
  79. params:data,
  80. method: 'get',
  81. })
  82. },
  83. mockSubscribeInfo(data) {
  84. return request({
  85. url: '/mock/subscribe/info/'+data,
  86. method: 'get',
  87. })
  88. },
  89. mockApplyListApplyName(data) {
  90. return request({
  91. url: '/mock/apply/listApplyName',
  92. method: 'get',
  93. params:data
  94. })
  95. },
  96. mockRecordGroupList(data) {
  97. return request({
  98. url: '/mock/record/group_list',
  99. method: 'get',
  100. params:data
  101. })
  102. },
  103. mockRecordList(data) {
  104. return request({
  105. url: '/mock/record/list',
  106. method: 'get',
  107. params:data
  108. })
  109. },
  110. }