import request from '@/sheep/request'; import request2 from '@/sheep/request2'; export default { // ζˆ‘ηš„ζ‹Όε›’ list: (params) => request({ url: 'coupon', method: 'GET', params, custom: { showLoading: false, }, }), userCoupon: (params) => request2({ url: 'promotion/coupon/page', method: 'GET', params, }), // userCoupon: (params) => // request({ // url: 'user/coupon', // method: 'GET', // params, // }), detail: (id, user_coupon_id) => request({ url: 'coupon/' + id, method: 'GET', params: { user_coupon_id, }, }), get: (id) => request2({ url: 'promotion/coupon/take', method: 'POST', data: { templateId: id }, params: { templateId: id }, }), // get: (id) => // request({ // url: 'coupon/get/' + id, // method: 'POST', // }), listByGoods: (id) => request({ url: 'coupon/listByGoods/' + id, method: 'GET', }), };