45 lines
777 B
JavaScript
45 lines
777 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询活动详情列表
|
|
export function listInfo(query) {
|
|
return request({
|
|
url: '/activityInfo/info/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询活动详情详细
|
|
export function getInfo(id) {
|
|
return request({
|
|
url: '/activityInfo/info/app/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增活动详情
|
|
export function addInfo(data) {
|
|
return request({
|
|
url: '/activityInfo/info',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改活动详情
|
|
export function updateInfo(data) {
|
|
return request({
|
|
url: '/activityInfo/info',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除活动详情
|
|
export function delInfo(id) {
|
|
return request({
|
|
url: '/activityInfo/info/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|