多租户商城-商户端
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.

179 lines
3.0 KiB

2 years ago
2 years ago
  1. import request from '@/utils/request'
  2. //* ******************** 添加商品 *********************
  3. // 店铺信息查询
  4. export function shopSysGetById(data) {
  5. return request({
  6. url: '/shop/getById',
  7. method: 'post',
  8. data
  9. })
  10. }
  11. // 修改店铺信息
  12. export function shopSysUpdate(data) {
  13. return request({
  14. url: '/shop/update',
  15. method: 'post',
  16. data
  17. })
  18. }
  19. // 支付认证
  20. export function registerByXs(data) {
  21. return request({
  22. url: '/shop/registerByXs',
  23. method: 'post',
  24. data
  25. })
  26. }
  27. //* ******************** 物流方案 *********************
  28. // 物流方案查询
  29. export function logisticsGetAll(data) {
  30. return request({
  31. url: '/logistics/getAll',
  32. method: 'post',
  33. data
  34. })
  35. }
  36. // 物流方案详情
  37. export function logisticsGetById(data) {
  38. return request({
  39. url: '/logistics/getById',
  40. method: 'post',
  41. data
  42. })
  43. }
  44. // 添加物流方案
  45. export function logisticsAdd(data) {
  46. return request({
  47. url: '/logistics/save',
  48. method: 'post',
  49. data
  50. })
  51. }
  52. // 修改物流方案
  53. export function logisticsUpdate(data) {
  54. return request({
  55. url: '/logistics/update',
  56. method: 'post',
  57. data
  58. })
  59. }
  60. // 删除物流方案
  61. export function logisticsDelete(data) {
  62. return request({
  63. url: '/logistics/delete',
  64. method: 'post',
  65. data
  66. })
  67. }
  68. //* ******************** 仓库 *********************
  69. // 仓库查询
  70. export function storehouseGetList(data) {
  71. return request({
  72. url: '/storehouse/getList',
  73. method: 'post',
  74. data
  75. })
  76. }
  77. export function storehouseGetAll(data) {
  78. return request({
  79. url: '/storehouse/getAll',
  80. method: 'post',
  81. data
  82. })
  83. }
  84. // 仓库详情
  85. export function storehouseGetById(data) {
  86. return request({
  87. url: '/storehouse/getById',
  88. method: 'post',
  89. data
  90. })
  91. }
  92. // 添加仓库
  93. export function storehouseAdd(data) {
  94. return request({
  95. url: '/storehouse/save',
  96. method: 'post',
  97. data
  98. })
  99. }
  100. // 修改仓库
  101. export function storehouseUpdate(data) {
  102. return request({
  103. url: '/storehouse/update',
  104. method: 'post',
  105. data
  106. })
  107. }
  108. // 删除仓库
  109. export function storehouseDelete(data) {
  110. return request({
  111. url: '/storehouse/delete',
  112. method: 'post',
  113. data
  114. })
  115. }
  116. //* ******************** 跨境信息 *********************
  117. // 获取全部
  118. export function shopcrossdetailGetAll(data) {
  119. return request({
  120. url: '/shopcrossdetail/getAll',
  121. method: 'post',
  122. data
  123. })
  124. }
  125. // 单个详情
  126. export function shopcrossdetailGetById(data) {
  127. return request({
  128. url: '/shopcrossdetail/getById',
  129. method: 'post',
  130. data
  131. })
  132. }
  133. // 添加
  134. export function shopcrossdetailAdd(data) {
  135. return request({
  136. url: '/shopcrossdetail/save',
  137. method: 'post',
  138. data
  139. })
  140. }
  141. // 修改
  142. export function shopcrossdetailUpdate(data) {
  143. return request({
  144. url: '/shopcrossdetail/update',
  145. method: 'post',
  146. data
  147. })
  148. }
  149. // 删除
  150. export function shopcrossdetailDelete(data) {
  151. return request({
  152. url: '/shopcrossdetail/delete',
  153. method: 'post',
  154. data
  155. })
  156. }