推拿小程序前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

155 lines
2.8 KiB

3 months ago
3 months ago
3 months ago
  1. // 个人相关接口
  2. const api = {
  3. /**
  4. * 我的团队-查询直推用户列表
  5. */
  6. queryRecommendUserList: {
  7. url: '/share/queryRecommendUserList',
  8. method: 'POST',
  9. auth: true,
  10. },
  11. /**
  12. * 邀请好友-获取推荐二维码
  13. */
  14. getInviteCode: {
  15. url: '/share/getInviteCode',
  16. method: 'POST',
  17. auth: true,
  18. showLoading: true,
  19. },
  20. /**
  21. * 积分-签到获取积分
  22. */
  23. sign: {
  24. url: '/score/sign',
  25. method: 'POST',
  26. auth: true,
  27. showLoading: true,
  28. },
  29. /**
  30. * 积分-查询积分列表
  31. */
  32. queryScoreList: {
  33. url: '/score/queryScoreList',
  34. method: 'GET',
  35. auth: true,
  36. showLoading: true,
  37. },
  38. // 充值
  39. recharge: {
  40. url: '/info_common/withdraw',
  41. method: 'GET',
  42. auth: true,
  43. limit: 1000,
  44. showLoading: true,
  45. },
  46. // 提现
  47. withdraw: {
  48. url: '/info_common/withdraw',
  49. method: 'GET',
  50. auth: true,
  51. limit: 1000,
  52. showLoading: true,
  53. },
  54. // 钱包-提现
  55. cashout: {
  56. url: '/amount/cashout',
  57. method: 'POST',
  58. auth: true,
  59. limit: 1000,
  60. showLoading: true,
  61. },
  62. // 钱包-领取提现金额
  63. getMoney: {
  64. url: '/amount/getMoney',
  65. method: 'POST',
  66. auth: true,
  67. limit: 1000,
  68. showLoading: true,
  69. },
  70. // 钱包-提现记录列表
  71. queryCashoutLog: {
  72. url: '/amount/queryCashoutLog',
  73. method: 'GET',
  74. auth: true,
  75. },
  76. // 获取地址列表带分页
  77. getAddressPageList: {
  78. url: '/info_common/getAddressPageList',
  79. method: 'GET',
  80. auth: true,
  81. },
  82. // 增加或修改地址信息
  83. addOrUpdateAddress: {
  84. url: '/info_common/addOrUpdateAddress',
  85. method: 'POST',
  86. limit: 500,
  87. auth: true,
  88. showLoading: true,
  89. },
  90. // 删除地址
  91. deleteAddress: {
  92. url: '/info_common/deleteAddress',
  93. method: 'GET',
  94. limit: 500,
  95. auth: true,
  96. showLoading: true,
  97. },
  98. // 修改默认地址
  99. updateDefaultAddress: {
  100. url: '/info_common/updateDefaultAddress',
  101. method: 'GET',
  102. auth: true,
  103. limit: 1000,
  104. },
  105. // 获取粉丝列表带分页
  106. getFansPageList: {
  107. url: '/info_common/getFansPageList',
  108. method: 'GET',
  109. auth: true,
  110. },
  111. // 获取相关介绍
  112. getInfoIntroduce: {
  113. url: '/info_common/getInfoIntroduce',
  114. method: 'GET',
  115. auth: true,
  116. },
  117. // 获取流水记录带分页
  118. getWaterPageList: {
  119. url: '/info_common/getWaterPageList',
  120. method: 'GET',
  121. auth: true,
  122. },
  123. // 获取相关介绍
  124. getInfoIntroduce: {
  125. url: '/info_common/getInfoIntroduce',
  126. method: 'GET',
  127. },
  128. // 获取相关介绍详情
  129. getInfoIntroduceDetail: {
  130. url: '/info_common/getRiceNewsDetail',
  131. method: 'GET',
  132. },
  133. // 查询个人信息相关
  134. getRiceInfo: {
  135. url: '/info_common/getRiceInfo',
  136. method: 'GET',
  137. limit: 500,
  138. },
  139. // 获取购物车信息列表带分页
  140. getCartPageList: {
  141. url: '/info_common/getCartPageList',
  142. method: 'GET',
  143. },
  144. // 领取新人优惠券
  145. getRiceCoupon: {
  146. url: '/info_common/getRiceCoupon',
  147. method: 'GET',
  148. limit: 500,
  149. auth: true,
  150. },
  151. }
  152. export default api