/**
 *  区域模块接口
 */
import request from '@/utils/request'
// 获取项目列表
export const getElectionList = (params) => request.basic.get('/api/v1/election-registrations', params)
// 获取单挑数据
export const getItem = (id) => request.basic.get(`/api/v1/activities/${id}`)
// 添加条目
export const createProject = (params) => request.basic.post('/api/v1/activities', params)
// 更新role
export const updateItem = (id, params) => request.basic.put(`/api/v1/activities/${id}`, params)
// 删除数据
export const delItem = (id) => request.basic.delete(`/api/v1/activities/${id}`)
//获取活动报名列表
export const getActivityList = (params) => request.basic.get('/api/v1/activity-registers', params)
// 导出文件
export const exportFile = (params) => request.basic.get('/api/v1/election-registrations/export', params, { responseType: 'blob' })