voucherOperation.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import request from '@/utils/request'
  2. // 分页查询平台代金券
  3. export function getAllPlatformVoucher(data) {
  4. return request({
  5. url: '/platformVoucher/getAll',
  6. method: 'post',
  7. data
  8. })
  9. }
  10. // 充值代金券统计
  11. export function getByUserOrderShopVoucher(params) {
  12. return request({
  13. url: '/shopVoucherEntryRecord/getByUserOrderVoucher',
  14. method: 'get',
  15. params
  16. })
  17. }
  18. // 兑换代金券统计
  19. export function getShopTotalShopVoucher(data) {
  20. return request({
  21. url: '/shopVoucherEntryRecord/shopTotal',
  22. method: 'post',
  23. data
  24. })
  25. }
  26. // 充值代金券转赠
  27. export function updateTransferRechargeShopVoucher(data) {
  28. return request({
  29. url: '/shopVoucherEntryRecord/getByUserOrderVoucher',
  30. method: 'post',
  31. data
  32. })
  33. }
  34. // 兑换代金券转赠
  35. export function updateTransferExchangeShopVoucher(data) {
  36. return request({
  37. url: '/shopVoucherEntryRecord/transfer',
  38. method: 'post',
  39. data
  40. })
  41. }
  42. // 代金券购买提交订单
  43. export function submitShopVoucherEntryRecord(data) {
  44. return request({
  45. url: '/shopVoucherEntryRecord/submitVoucher',
  46. method: 'post',
  47. data
  48. })
  49. }