import request from '@/utils/httpRequest'

export default class LuckyDrawEventsService {
  list (params) {
    return request({
      url: '/luckyDraw/events/list',
      method: 'get',
      params: params
    })
  }
  save (param) {
    return request({
      url: '/luckyDraw/events/save',
      method: 'post',
      data: param
    })
  }
  queryById (id) {
    return request({
      url: '/luckyDraw/events/queryById',
      method: 'get',
      params: {id: id}
    })
  }
  delete (ids) {
    return request({
      url: '/luckyDraw/events/delete',
      method: 'delete',
      params: {ids: ids}
    })
  }
  openEvent (id) {
    return request({
      url: '/luckyDraw/events/openEvent',
      method: 'get',
      params: {id: id}
    })
  }
  closeEvent (id) {
    return request({
      url: '/luckyDraw/events/closeEvent',
      method: 'get',
      params: {id: id}
    })
  }
}
