import request from '@/utils/request'

// 获取活动列表
export function getActivityList(data) {
  return request({
    url: '/activity/getactivitylist',
    method: 'get',
    params: data
  })
}

// 添加活动
export function addActivity(data) {
  return request({
    url: '/activity/addactivity',
    method: 'post',
    data
  })
}

// 删除活动
export function deleteActivity(data) {
  return request({
    url: '/activity/destoryactivity',
    method: 'post',
    data
  })
}

// 禁用启用活动
export function disableActivity(data) {
  return request({
    url: '/activity/disabledactivity',
    method: 'post',
    data
  })
}

// 修改活动
export function editActivity(data) {
  return request({
    url: '/activity/updateactivity',
    method: 'post',
    data
  })
}
