consumption.js 999 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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: (params) => {
  40. return request({
  41. url: '/distri/integral/quotaTransition',
  42. method: 'PUT',
  43. data: params,
  44. custom: {
  45. showLoading: true,
  46. showError: true,
  47. },
  48. });
  49. },
  50. };
  51. export default ConsumptionApi;