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.
44 lines
755 B
44 lines
755 B
import request from '@/utils/request'
|
|
|
|
// 查询轮播广告列表
|
|
export function listAds(query) {
|
|
return request({
|
|
url: '/muhu/ads/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询轮播广告详细
|
|
export function getAds(carouselId) {
|
|
return request({
|
|
url: '/muhu/ads/' + carouselId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增轮播广告
|
|
export function addAds(data) {
|
|
return request({
|
|
url: '/muhu/ads',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改轮播广告
|
|
export function updateAds(data) {
|
|
return request({
|
|
url: '/muhu/ads',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除轮播广告
|
|
export function delAds(carouselId) {
|
|
return request({
|
|
url: '/muhu/ads/' + carouselId,
|
|
method: 'delete'
|
|
})
|
|
}
|