/**
 * 统计表格的接口
 */
import http from './http'
const ipconfig = process.env.VUE_APP_API

// 周雪松
// 周周赢免单列表接口
const manageList = (params) => { return http.get(ipconfig + '/overlord_prize/manage/list', { params }) }

// 下架
const manageOff = (params) => { return http.put(ipconfig + '/overlord_prize/manage/off', params) }

// 新建奖品
const manageCreate = (params) => { return http.post(ipconfig + '/overlord_prize/manage/create', params) }

// 编辑奖品
const manageModify = (params) => { return http.put(ipconfig + '/overlord_prize/manage/modify', params) }


// 奖品详情
const manageDetail = (params) => { return http.get(ipconfig + '/overlord_prize/manage/detail', { params }) }

const businessUsage = (params) => { return http.get(ipconfig + '/overlord_prize/manage/business_usage', { params }) }

// 活动留言列表
const activity_messageList = (params) => { return http.get(ipconfig + '/activity_message/manage/list', { params }) }

// 删除留言
const messageDelete = (params) => { return http.delete(ipconfig + '/activity_message/manage/' + params.id, ) }

// 趋势统计图
const overlordId = (params) => { return http.get(ipconfig + '/statistic/trendline/overlord/' + params.id, ) }

// 周周赢免单统计
const statisticOverlord = (params) => { return http.get(ipconfig + '/statistic/overlord', { params }) }

// 授权统计页面
const statisticAuthorization = (params) => { return http.get(ipconfig + '/statistic/authorization', { params }) }

// 导出
const overlordExport = (params) => { return http.get(ipconfig + '/statistic/overlord/export', { params }) }



export default {
    messageDelete,
    manageList,
    manageOff,
    manageCreate,
    manageDetail,
    businessUsage,
    manageModify,
    activity_messageList,
    overlordId,
    statisticOverlord,
    statisticAuthorization,
    overlordExport
}