receiveCoupon.ts 580 B

1234567891011121314151617181920
  1. import { http } from '@/http/alova'
  2. import { ContentTypeEnum } from '@/http/tools/enum'
  3. export function getReceiveCouponDetail(couponId: string) {
  4. return http.Get('/couponCenter/APP/shareRecord/queryTemplateBySendUserId', {
  5. params: {
  6. id: couponId,
  7. }
  8. })
  9. }
  10. // 新增:获取优惠券分享短链的接口
  11. export function getCouponShareLink(params) {
  12. return http.Get('/couponCenter/APP/shareRecord/createShareWechatUrl', {
  13. params: {
  14. templateId: params.templateId,
  15. pathUrl: params.pathUrl,
  16. }
  17. })
  18. }