apiurl.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. goodsTypeTree: {
  37. url: '/goodsType/tree',
  38. type: 'get'
  39. },
  40. // 商品分类信息列表
  41. goodsTypeList: {
  42. url: '/goodsType/list',
  43. type: 'get'
  44. },
  45. // 商品列表
  46. memberGoodList: {
  47. url: '/goods/memberGoodList',
  48. type: 'get'
  49. },
  50. // 商品详情
  51. memberGoodDetails: {
  52. url: '/goods/memberGetById',
  53. type: 'get'
  54. },
  55. // 商品评价
  56. commentList: {
  57. url: '/goods/commentList',
  58. type: 'get'
  59. },
  60. // 查询类型简介
  61. xsGetIntro: {
  62. url: '/shop/getIntro',
  63. type: 'get'
  64. },
  65. // 商行产品类型
  66. shopGoodsType: {
  67. url: '/shopGoodsType/list',
  68. type: 'get'
  69. },
  70. // 商行产品列表
  71. shopGoods: {
  72. url: '/shopGoods/pageList',
  73. type: 'get'
  74. },
  75. // 动态类型列表
  76. shopNewsType: {
  77. url: '/shopNewsType/list',
  78. type: 'get'
  79. },
  80. // 动态列表
  81. shopNewsList: {
  82. url: '/shopNews/pageList',
  83. type: 'get'
  84. },
  85. // 动态详情
  86. shopNews: {
  87. url: '/shopNews/selectById',
  88. type: 'get'
  89. },
  90. // 动态详情增加浏览量
  91. addViewCount: {
  92. url: '/shopNews/addViewCount',
  93. type: 'put'
  94. },
  95. // 购物车
  96. // 商品加入购物车
  97. addCart: {
  98. url: '/goodsCart/insert',
  99. type: 'post'
  100. },
  101. // 购物车列表
  102. cartList: {
  103. url: '/goodsCart/pageList',
  104. type: 'get'
  105. },
  106. }
  107. /*
  108. * 特殊处理接口
  109. */
  110. const otherApiUrl = {
  111. // 文件上传
  112. uploadFile: '/file/upload/single/minio',
  113. }
  114. export {
  115. apiurl,
  116. otherApiUrl
  117. }