index.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. import Request from '../request';
  2. let request = Request.http;
  3. export default {
  4. getSupplyDetails(param) {
  5. return request({
  6. url: '/goods/app/v1/prods/find',
  7. method: 'get',
  8. data: param,
  9. })
  10. },
  11. /**
  12. * 获取所有群组
  13. * @param {*} param
  14. * @returns
  15. */
  16. getAllGroups(param) {
  17. return request({
  18. url: '/im/app/v1/im/getAllGroups',
  19. method: 'post',
  20. data: param,
  21. })
  22. },
  23. /**
  24. * 入群下单
  25. * @param {*} param
  26. * @returns
  27. */
  28. addImGroupOrder(param) {
  29. return request({
  30. url: '/order/app/v1/imorder/addImGroupOrder',
  31. method: 'post',
  32. data: param,
  33. header: {
  34. 'Content-Type': 'application/json'
  35. }
  36. })
  37. },
  38. /**
  39. * 根据群组groupId查询群组信息--是否已加入该群组
  40. * @param {*} param
  41. * @returns
  42. */
  43. getGroupByGroupId(param) {
  44. return request({
  45. url: '/im/app/v1/im/getResourceAggregationGroupByGroupId',
  46. method: 'get',
  47. data: param,
  48. })
  49. },
  50. /**
  51. * 加入指定的群组
  52. * @param {*} param
  53. * @returns
  54. */
  55. addRagUser(param) {
  56. return request({
  57. url: '/im/app/v1/im/addRagUser',
  58. method: 'post',
  59. data: param,
  60. // header: {
  61. // 'Content-type': "application/x-www-form-urlencoded",
  62. // }
  63. })
  64. },
  65. /**
  66. * 根据手机号获取用户
  67. * @param {*} param
  68. * @returns
  69. */
  70. getUserInfoByPhone(param) {
  71. return request({
  72. url: '/user/app/v1/user/getUserInfoByPhone/' + param,
  73. method: 'post',
  74. })
  75. },
  76. /**
  77. * 获取用户信息
  78. * @param {*} param
  79. * @returns
  80. */
  81. getUserInfo(param) {
  82. return request({
  83. url: '/user/app/v1/user/getUserInfo/' + param,
  84. method: 'post',
  85. })
  86. },
  87. /**
  88. * 获取店铺信息
  89. * @param {*} param
  90. * @returns
  91. */
  92. getByOwnerId(param) {
  93. return request({
  94. url: '/user/app/v1/store/getByOwnerId/' + param,
  95. method: 'post',
  96. })
  97. },
  98. /**
  99. * 订单详情
  100. * @param {*} param
  101. * @returns
  102. */
  103. orderDetail(param) {
  104. return request({
  105. url: '/order/app/v1/seller/order/detail-v2/' + param,
  106. method: 'get',
  107. })
  108. },
  109. /**
  110. * 通知列表
  111. * @param {*} param
  112. * @returns
  113. */
  114. noticeList(param) {
  115. return request({
  116. url: '/user/app/v1/notice/list',
  117. method: 'get',
  118. data: param
  119. })
  120. },
  121. nuRead(param) {
  122. return request({
  123. url: '/user/app/v1/notice/nuRead/' + param,
  124. method: 'get',
  125. })
  126. },
  127. readAll(param) {
  128. return request({
  129. url: '/user/app/v1/notice/readAll',
  130. method: 'put',
  131. data: param
  132. })
  133. },
  134. /**
  135. * 红包
  136. */
  137. receiveLq(param) {
  138. return request({
  139. url: '/user/app/v1/store/marketing/receive/' + param,
  140. method: 'get',
  141. })
  142. },
  143. }