consumption.js 996 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import request from '@/sheep/request';
  2. const ConsumptionApi = {
  3. // 获取消费分记录
  4. getConsumptionLog: (params) => {
  5. return request({
  6. url: '/distri/consumption-change-log/page',
  7. method: 'GET',
  8. params,
  9. custom: {
  10. showLoading: true,
  11. showError: true,
  12. },
  13. });
  14. },
  15. // 消费分转让
  16. createConsumptionLog: (data) => {
  17. return request({
  18. url: '/distri/consumption-transfer-log/create',
  19. method: 'POST',
  20. data,
  21. custom: {
  22. showLoading: true,
  23. showError: true,
  24. },
  25. })
  26. },
  27. // 获取消费分转让记录
  28. getConsumptionTransfersLog: (params) => {
  29. return request({
  30. url: '/distri/consumption-transfer-log/page',
  31. method: 'GET',
  32. params,
  33. custom: {
  34. showLoading: true,
  35. showError: true,
  36. },
  37. });
  38. },
  39. quotaTransition: (quota) => {
  40. return request({
  41. url: '/distri/integral/quotaTransition?quota=' + quota,
  42. method: 'PUT',
  43. custom: {
  44. showLoading: true,
  45. showError: true,
  46. },
  47. });
  48. },
  49. };
  50. export default ConsumptionApi;