2025-03-20 13:37:24 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
export function page (pageParam) {
|
|
|
|
return request({
|
2025-03-24 20:34:18 +08:00
|
|
|
url: '/tmerclub_product/m/giveaway/page',
|
2025-03-20 13:37:24 +08:00
|
|
|
method: 'get',
|
|
|
|
params: pageParam
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function get (giveawayId) {
|
|
|
|
return request({
|
2025-03-24 20:34:18 +08:00
|
|
|
url: '/tmerclub_product/m/giveaway',
|
2025-03-20 13:37:24 +08:00
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
giveawayId
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function save (data) {
|
|
|
|
return request({
|
2025-03-24 20:34:18 +08:00
|
|
|
url: '/tmerclub_product/m/giveaway',
|
2025-03-20 13:37:24 +08:00
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function update (data) {
|
|
|
|
return request({
|
2025-03-24 20:34:18 +08:00
|
|
|
url: '/tmerclub_product/m/giveaway',
|
2025-03-20 13:37:24 +08:00
|
|
|
method: 'put',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function deleteById (giveawayId) {
|
|
|
|
return request({
|
2025-03-24 20:34:18 +08:00
|
|
|
url: '/tmerclub_product/m/giveaway',
|
2025-03-20 13:37:24 +08:00
|
|
|
method: 'delete',
|
|
|
|
params: {
|
|
|
|
giveawayId
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function changeStatus (data) {
|
|
|
|
return request({
|
2025-03-24 20:34:18 +08:00
|
|
|
url: '/tmerclub_product/m/giveaway/change_status',
|
2025-03-20 13:37:24 +08:00
|
|
|
method: 'put',
|
|
|
|
params: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function mainSpuPage (pageParam) {
|
|
|
|
return request({
|
2025-03-24 20:34:18 +08:00
|
|
|
url: '/tmerclub_product/m/giveaway_spu/main_spu_page',
|
2025-03-20 13:37:24 +08:00
|
|
|
method: 'get',
|
|
|
|
params: pageParam
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function comboPage (pageParam) {
|
|
|
|
return request({
|
2025-03-24 20:34:18 +08:00
|
|
|
url: '/tmerclub_search/mp/search/page_combo_add_spu',
|
2025-03-20 13:37:24 +08:00
|
|
|
method: 'get',
|
|
|
|
params: pageParam
|
|
|
|
})
|
|
|
|
}
|