distribution.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import request from '@/utils/request';
  2. /**
  3. * @description 分销设置 -- 详情
  4. */
  5. export function configApi() {
  6. return request({
  7. url: '/admin/platform/retail/store/config/get',
  8. method: 'get',
  9. });
  10. }
  11. /**
  12. * @description 分销设置 -- 表单提交
  13. */
  14. export function configUpdateApi(data) {
  15. return request({
  16. url: '/admin/platform/retail/store/config/save',
  17. method: 'post',
  18. data,
  19. });
  20. }
  21. /**
  22. * @description 分销员 -- 列表
  23. */
  24. export function promoterListApi(params) {
  25. return request({
  26. url: '/admin/platform/retail/store/people/list',
  27. method: 'get',
  28. params,
  29. });
  30. }
  31. /**
  32. * @description 根据条件获取下级推广用户列表
  33. */
  34. export function spreadListApi(params) {
  35. return request({
  36. url: '/admin/platform/retail/store/sub/user/list',
  37. method: 'get',
  38. params,
  39. });
  40. }
  41. /**
  42. * @description 推广人订单 -- 列表
  43. */
  44. export function spreadOrderListApi(params) {
  45. return request({
  46. url: '/admin/platform/retail/store/promotion/order/list',
  47. method: 'get',
  48. params,
  49. });
  50. }
  51. /**
  52. * @description 推广人 -- 清除上级推广人
  53. */
  54. export function spreadClearApi(id) {
  55. return request({
  56. url: `/admin/platform/retail/store/clean/spread/${id}`,
  57. method: 'get',
  58. });
  59. }