afterSale.js 672 B

1234567891011121314151617181920212223242526272829303132333435
  1. import request2 from '@/sheep/request2';
  2. import request from '@/sheep/request';
  3. const AfterSaleApi = {
  4. // 创建售后
  5. createAfterSale: (data) => {
  6. return request2({
  7. url: `/app-api/trade/after-sale/create`,
  8. method: 'POST',
  9. data,
  10. });
  11. },
  12. // 获得售后
  13. getAfterSale: (id) => {
  14. return request2({
  15. url: `/app-api/trade/after-sale/get`,
  16. method: 'GET',
  17. params: {
  18. id,
  19. },
  20. });
  21. },
  22. // 取消售后
  23. cancelAfterSale: (id) => {
  24. return request2({
  25. url: `/app-api/trade/after-sale/cancel`,
  26. method: 'DELETE',
  27. params: {
  28. id,
  29. },
  30. });
  31. }
  32. };
  33. export default AfterSaleApi;