apiurl.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. /*
  2. 接口统一管理
  3. */
  4. const apiurl = {
  5. // 获取微信信息
  6. wxinfo: {
  7. url: '/auth/miniappLoginInfo',
  8. type: 'get'
  9. },
  10. // 授权获取微信手机号
  11. getMobile: {
  12. url: '/auth/getMobile',
  13. type: 'get'
  14. },
  15. // 用户注册登陆
  16. login: {
  17. url: '/auth/userRegisterOrLogin',
  18. type: 'post'
  19. },
  20. // 重新登录
  21. reLogin: {
  22. url: '/auth/login',
  23. type: 'post'
  24. },
  25. // 查询登录用户信息
  26. memberInfo: {
  27. url: '/memberInfo/selectById',
  28. type: 'get'
  29. },
  30. // 修改用户信息
  31. updateMemberInfo: {
  32. url: '/memberInfo/update',
  33. type: 'put'
  34. },
  35. //轮播图
  36. swiperList: {
  37. url: '/advList/pageList',
  38. type: 'get'
  39. },
  40. //轮播图详情
  41. swiperDetails: {
  42. url: '/advList/selectById',
  43. type: 'get'
  44. },
  45. // 商品分类信息
  46. goodsTypeTree: {
  47. url: '/goodsType/tree',
  48. type: 'get'
  49. },
  50. // 商品分类信息列表
  51. goodsTypeList: {
  52. url: '/goodsType/list',
  53. type: 'get'
  54. },
  55. // 商品列表
  56. memberGoodList: {
  57. url: '/goods/memberGoodList',
  58. type: 'get'
  59. },
  60. // 商品详情
  61. memberGoodDetails: {
  62. url: '/goods/memberGetById',
  63. type: 'get'
  64. },
  65. // 商品评价
  66. commentList: {
  67. url: '/goods/commentList',
  68. type: 'get'
  69. },
  70. // 查询类型简介
  71. xsGetIntro: {
  72. url: '/shop/getIntro',
  73. type: 'get'
  74. },
  75. // 商行产品类型
  76. shopGoodsType: {
  77. url: '/shopGoodsType/list',
  78. type: 'get'
  79. },
  80. // 商行产品列表
  81. shopGoods: {
  82. url: '/shopGoods/pageList',
  83. type: 'get'
  84. },
  85. // 热销商品列表
  86. topGoodList: {
  87. url: '/goods/selectTopGoodList',
  88. type: 'get'
  89. },
  90. // 动态类型列表
  91. shopNewsType: {
  92. url: '/shopNewsType/list',
  93. type: 'get'
  94. },
  95. // 动态列表
  96. shopNewsList: {
  97. url: '/shopNews/pageList',
  98. type: 'get'
  99. },
  100. // 动态详情
  101. shopNews: {
  102. url: '/shopNews/selectById',
  103. type: 'get'
  104. },
  105. // 动态详情增加浏览量
  106. addViewCount: {
  107. url: '/shopNews/addViewCount',
  108. type: 'put'
  109. },
  110. // 购物车
  111. // 商品加入购物车
  112. addCart: {
  113. url: '/goodsCart/insert',
  114. type: 'post'
  115. },
  116. // 购物车列表
  117. cartList: {
  118. url: '/goodsCart/pageList',
  119. type: 'get'
  120. },
  121. // 修改购物车商品数量
  122. updateQuantity: {
  123. url: '/goodsCart/updateQuantity',
  124. type: 'post'
  125. },
  126. // 批量移除
  127. deleteCarts: {
  128. url: '/goodsCart/deleteByIds',
  129. type: 'delete'
  130. },
  131. // 地址列表
  132. addrList: {
  133. url: '/memberAddress/pageList',
  134. type: 'get'
  135. },
  136. // 添加地址
  137. addAddr: {
  138. url: '/memberAddress/insert',
  139. type: 'post'
  140. },
  141. // 查看详情
  142. getAddrById: {
  143. url: '/memberAddress/selectById',
  144. type: 'get'
  145. },
  146. // 修改地址
  147. editAddr: {
  148. url: '/memberAddress/update',
  149. type: 'put'
  150. },
  151. // 删除地址
  152. delAddr: {
  153. url: '/memberAddress/deleteById',
  154. type: 'delete'
  155. },
  156. // 查询登录用户订单量
  157. statisticsOrder: {
  158. url: '/order/statisticsOrder',
  159. type: 'get'
  160. },
  161. // 订单列表
  162. orderList: {
  163. url: '/order/pageList',
  164. type: 'get'
  165. },
  166. // 订单详情
  167. orderDetails: {
  168. url: '/order/selectById',
  169. type: 'get'
  170. },
  171. }
  172. /*
  173. * 特殊处理接口
  174. */
  175. const otherApiUrl = {
  176. // 文件上传
  177. uploadFile: '/file/upload/single/minio',
  178. }
  179. export {
  180. apiurl,
  181. otherApiUrl
  182. }