import Mock from 'mockjs';

const zj = {
    code: 600,
    message: 'SUCCESS',
    data: {
        type: 1,
        sskh: 2,
        scrq: 3,
        ysrq: 4,
        wgbh: 5,
        ipdz: 6,
        zbjzq: 7,
        zbq: 8,
        khdz: 9
    }
}
const ws = {
    code: 600,
    message: 'SUCCESS',
    data: {
        type: 2,
        sskh: 3,
        scrq: 4,
        ysrq: 5,
        wgbh: 6,
        ipdz: 7,
        zbjzq: 8,
        zbq: 9,
        khdz: 10
    }
}

// 拦截接口
// 当跟后台联调真实数据时，直接注释掉对应接口的拦截就可以了
// Mock.mock(/\/api\/Equipment\/find\/main\/*/, 'get', config => {
//     if (JSON.parse(config.body).id === '3') {
//         return zj
//     } else {
//         return ws
//     }
// });

export default Mock;
