| 123456789101112131415161718192021222324252627282930313233343536373839 |
- import { http } from '@/http/alova'
- import { ContentTypeEnum } from '@/http/tools/enum'
- export function getReceiveCouponDetail(couponId: string) {
- return http.Get('/couponCenter/APP/shareRecord/queryTemplateBySendUserId', {
- params: {
- id: couponId,
- }
- })
- }
- // 新增:获取优惠券分享短链的接口
- export function getCouponShareLink(params) {
- return http.Get('/couponCenter/APP/shareRecord/createShareWechatUrl', {
- params: {
- templateId: params.templateId,
- pathUrl: params.pathUrl,
- }
- })
- }
- export function getWxQcCode(params) {
- return http.Post('/couponCenter/APP/shareRecord/createQRCode', params, {
- responseType: 'arraybuffer',
- cacheFor: null,
- meta: {
- returnResponse: true,
- }
- })
- }
- // 标记分享成功接口
- export function markSuccess(shareId: string) {
- return http.Get('/couponCenter/APP/shareRecord/markSuccess', {
- params: {
- shareId,
- }
- })
- }
|