60 lines
1.2 KiB
JavaScript
60 lines
1.2 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
|
|
export function issueCardFavorable(data) {
|
|
return request({
|
|
url: 'business/marketingActivity/oneActiveOneCoupon',
|
|
method: 'post',
|
|
data:data
|
|
})
|
|
}
|
|
|
|
export function getCardFavorableLists(status) {
|
|
return request({
|
|
url: 'business/marketingActivity/oneActiveOneCoupon',
|
|
method: 'get',
|
|
params: status
|
|
})
|
|
}
|
|
export function getCardFavorable(id) {
|
|
return request({
|
|
url: 'business/marketingActivity/oneActiveOneCoupon/'+id,
|
|
method: 'get',
|
|
|
|
})
|
|
}
|
|
export function updetaCardFavorable(data) {
|
|
return request({
|
|
url: 'business/marketingActivity/oneActiveOneCoupon',
|
|
method: 'put',
|
|
data:data
|
|
|
|
})
|
|
}
|
|
export function deleteCardFavorable(id) {
|
|
return request({
|
|
url: 'business/marketingActivity/oneActiveOneCoupon/delById/'+id,
|
|
method: 'delete',
|
|
|
|
|
|
})
|
|
}
|
|
export function postyijian(data) {
|
|
return request({
|
|
url: 'business/marketingActivity/cardFavorableRecord/issueCardFavorable',
|
|
method: 'post',
|
|
data:data
|
|
|
|
|
|
})
|
|
}
|
|
|
|
export function getAdaptUserList(data) {
|
|
|
|
return request({
|
|
url: 'business/marketingActivity/cardFavorableRecord/getAdaptUserList',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|