channelCoupons.js 552 B

123456789101112131415161718192021222324252627
  1. import request from '@/utils/request'
  2. //* ******************** 渠道优惠券 *********************
  3. // 渠道优惠券列表查询
  4. export function getList(data) {
  5. return request({
  6. url: '/channelCoupon/getAll',
  7. method: 'post',
  8. data
  9. })
  10. }
  11. // 添加渠道优惠券
  12. export function add(data) {
  13. return request({
  14. url: '/channelCoupon/save',
  15. method: 'post',
  16. data
  17. })
  18. }
  19. // 生成渠道页链接
  20. export function generateLink(data) {
  21. return request({
  22. url: '/channelCoupon/generateLink',
  23. method: 'post',
  24. data
  25. })
  26. }