/**
 *  区域模块接口
 */
import request from '@/utils/request'
// 获取项目列表
export const getProjectList = (params) => request.basic.get('/api/v1/raffle-products', params)
// 获取单挑数据
export const getItem = (id) => request.basic.get(`/api/v1/raffle-products/${id}`)
// 添加条目
export const createProject = (params) => request.basic.post('/api/v1/raffle-products', params)
// 更新role
export const updateItem = (id, params) => request.basic.put(`/api/v1/raffle-products/${id}`, params)
// 删除数据
export const delItem = (id) => request.basic.delete(`/api/v1/raffle-products/${id}`)
//获取抽奖记录
export const getRaffleOrders = (params) => request.basic.get('/api/v1/raffle-orders', params)
// 导出文件
export const exportFile = () => request.basic.get('/api/v1/apps/common/raffle/Atbrw2334D_FVadfyb435zr55q3')
//核销抽奖
export const updateProject = (id,params) => request.basic.put(`/api/v1/raffle-orders/${id}`, params)