import http from "./configSys";
import httpUserbase from './confign'

// 案例列表
export const RECOMMEND_PAGE = "/systemapi/xboe/m/boe/cases/recommend/page post";
//发起案例列表或案例管理列表
export const isTopList = (data) => http.post('/xboe/m/boe/cases/isTopList', data, {
    headers: {
        'Content-Type': 'multipart/form-data'
    }
})
//下载失败数据
export const downloadErrorData = (params) => http.get('/xboe/m/boe/cases/recommend/download', { params })
//导入失败或成功返回的数据
export const downloadErrorRecords = (params) => http.get('/xboe/m/boe/cases/recommend/import-info', { params })
//案例推荐导入
// export const uploadCaseData = (data, config) => http({
//     method: 'POST',
//     url: '/xboe/m/boe/cases/recommend/import',
//     data,
//     ...config,
//     headers: { "Content-Type": "multipart/form-data" },
// })
// 案例删除接口deleteResearch
export const deleteResearch = (params) => http.get("xboe/m/boe/cases/recommend/delete", { params });
// 案例信息下载接口
export const caseInfoDownload = (data) => http.post('xboe/m/boe/cases/recommend/info_download', data, { responseType: 'blob' })
// 案例撤回接口
export const rePushOrWithdraw = (data) => http.post('xboe/m/boe/cases/recommend/rePushOrWithdraw', data)
// 案例推荐
export const caseRecommend = (data) => http.post('/xboe/m/boe/cases/recommend/launch', data,{
    timeout:20000
})

//案例推荐选人的查询列表
export const userList = (data) => httpUserbase.post('/user/list', data)