You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
shanyikang/sheep/api/coupon.js

45 lines
776 B

import request from '@/sheep/request';
export default {
// 优惠券
list: (params) =>
request({
url: 'coupon',
method: 'GET',
params,
custom: {
showLoading: false,
},
}),
userCoupon: (params) =>
request({
url: 'user.coupon',
method: 'GET',
params,
}),
detail: (id, user_coupon_id) =>
request({
url: 'coupon/detail',
method: 'GET',
params: {
id: id,
user_coupon_id,
},
}),
get: (id) =>
request({
url: 'coupon/get',
method: 'POST',
params: {
id: id,
},
}),
listByGoods: (id) =>
request({
url: 'coupon/listByGoods',
method: 'GET',
params: {
goods_id: id,
},
}),
};