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.
73 lines
1.4 KiB
73 lines
1.4 KiB
import request from '@/utils/request'
|
|
const carousel = '/enterprise/carousel'
|
|
|
|
export function queryCarousel(data) {
|
|
return request({
|
|
url: `/gateway${carousel}/queryCarousel`,
|
|
method: 'post',
|
|
data: {
|
|
param: {
|
|
jumpType: data.jumpType,
|
|
pageNum: data.pageNum,
|
|
pageSize: data.pageSize
|
|
}
|
|
}
|
|
})
|
|
}
|
|
|
|
export function updateCarousel(data) {
|
|
return request({
|
|
url: `/gateway${carousel}/updateCarousel`,
|
|
method: 'post',
|
|
data: {
|
|
param: {
|
|
id: data.id,
|
|
jumpType: data.jumpType,
|
|
jumpUrl: data.jumpUrl,
|
|
param: data.param,
|
|
recStatus: data.recStatus,
|
|
url: data.url
|
|
}
|
|
}
|
|
})
|
|
}
|
|
|
|
export function activeAndStop(data) {
|
|
return request({
|
|
url: `/gateway${carousel}/activeAndStop`,
|
|
method: 'post',
|
|
data: {
|
|
param: {
|
|
id: data.id,
|
|
recStatus: data.recStatus
|
|
}
|
|
}
|
|
})
|
|
}
|
|
|
|
export function deleteCarousel(data) {
|
|
return request({
|
|
url: `/gateway${carousel}/deleteCarousel`,
|
|
method: 'post',
|
|
data: {
|
|
param: {
|
|
id: data
|
|
}
|
|
}
|
|
})
|
|
}
|
|
|
|
export function addCarousel(data) {
|
|
return request({
|
|
url: `/gateway${carousel}/addCarousel`,
|
|
method: 'post',
|
|
data: {
|
|
param: {
|
|
jumpType: data.jumpType,
|
|
jumpUrl: data.jumpUrl,
|
|
param: data.param,
|
|
url: data.url
|
|
}
|
|
}
|
|
})
|
|
}
|
|
|