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.
41 lines
790 B
41 lines
790 B
import request from '@/utils/request'
|
|
export function fetchList(params) {
|
|
return request({
|
|
url:'/home/recommendProduct/list',
|
|
method:'get',
|
|
params:params
|
|
})
|
|
}
|
|
|
|
export function updateRecommendStatus(data) {
|
|
return request({
|
|
url:'/home/recommendProduct/update/recommendStatus',
|
|
method:'post',
|
|
data:data
|
|
})
|
|
}
|
|
|
|
export function deleteHotProduct(data) {
|
|
return request({
|
|
url:'/home/recommendProduct/delete',
|
|
method:'post',
|
|
data:data
|
|
})
|
|
}
|
|
|
|
export function createHotProduct(data) {
|
|
return request({
|
|
url:'/home/recommendProduct/create',
|
|
method:'post',
|
|
data:data
|
|
})
|
|
}
|
|
|
|
export function updateHotProductSort(params) {
|
|
return request({
|
|
url:'/home/recommendProduct/update/sort/'+params.id,
|
|
method:'post',
|
|
params:params
|
|
})
|
|
}
|