const path = require('path');
const config = {
    //发送验证码
    "/projectx/projectId/join_1/sendSms.do": {
        data: './json/sendCode.json'
    },
    //验证验证码
    "/projectx/projectId/join_1/verifySms.do": {
        data: './json/verifyCode.json'
    },
    //排行榜信息
    "/projectx/projectId/scoring_1/userInfo.do": {
        data: './json/rankInfo.json'
    },
    //获取排行榜列表
    "/projectx/projectId/getRanking.query": {
        data: './json/queryRankListData.json'
    },
    //获取用户昵称
    "/projectx/projectId/scoring_1/userInfoList.do": {
        data: './json/queryNickname.json'
    },
    //获取微信用户信息
    "/wechatThirdParty/getWechatUserNew": {
        data: './json/getWechatUserNew.json'
    },
    //抽奖
    "/projectx/projectId/join_2/join.do": {
        data: './json/lottery.json'
    },
    //清楚奖励
    "/projectx/projectId/join_1/remove.do": {
        data: './json/share.json'
    },
    //分享加次数
    "/projectx/projectId/join_1/share.do": {
        data: './json/share.json'
    },
    //奖品信息
    '/projectx/projectId/prize.query': {
        data: './json/prizeInfo.json'
    },
    //任务列表
    '/projectx/projectId/join_1/list.do': {
        data: './json/taskList.json'
    },
    '/projectx/projectId/join_1/data.do': {
        data: './json/signData.json'
    },
    //首页信息接口
    "/projectx/projectId/join_1/join.do": {
        // data: './json/signIn.json'
        data: './json/homePage.json'
    },
    "/projectx/projectId/scoring_1/spData.do": {
        data: './json/queryProps.json'
    },
    "/projectx/projectId/scoring_1/start.do": {
        data: './json/start.json'
    },
    "/projectx/projectId/scoring_1/submit.do": {
        data: './json/finalSubmit.json'
    },
    "/projectx/projectId/scoring_1/revive.do": {
        data: './json/revive.json'
    },
    "/projectx/projectId/scoring_1/push.do": {
        data: './json/constantSubmit.json'
    },

    "/projectx/projectId/scoring_1/visit.do": {
        data: './json/visit.json'
    },
    "/projectx/projectId/join_2/data.do": {
        data: './json/taskData.json'
    },
    // "/projectx/projectId/join_2/join.do": {
    //     data: './json/taskComplete.json'
    // },
    "/hdtool/rank/recentRankListNew": {
        data: './json/rankListOld.json'
    },
    // "/projectx/{projectId}/join_2/join.do": {
    //     data: './json/share.json'
    // }
}

for (let item in config) {
    /* let key = item.replace(new RegExp("{", "g"), "");
    key = key.replace(new RegExp("}", "g"), "");
    config[key] = config[item]; */

    if (config.hasOwnProperty(item))
        config[item].path = path.resolve(__dirname, config[item].data);
}
module.exports = config;