import http from './http'

/**
 * 获取弹窗优惠券
*/
export const getMaskCoupon = function (params) { return http('pay_ad/v2/ad_im', params) }

/**
 * 领券结果上报
*/
export const sendCouponResult = function (params) { return http('pay_ad/v2/ad_busifavor_ping', params) }

/**
 * 获取当前模块的优惠券
*/
export const getCoupon = function (params) { return http('pay_ad/v2/ad_busifavor', params) }

/**
 * 获取打开券详情参数
*/
export const getOpenCouponParams = function (params) { return http('pay_ad/v2/ad_open_card', params) }

/**
 * 插件调用前埋点
*/
export const getAdBefore = function (params) { return http('pay_ad/v2/ad_before', params) }

/**
 * 插件接口调用后埋点
*/
export const getAdAfter = function (params) { return http('pay_ad/v2/ad_after', params) }