“ff25a2c4a5aa1897d8da88487d3822e7532b40e0”上不存在“src/git@gitcode.net:qq_37101384/tdengine.git”
mock.js 533 字节
Newer Older
B
BingBlog 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
/**
 * frontend mock data
 *
 * @param {string} path request path
 * @param {Object} queryParam params
 * @param {Object} postParam post post params
 * @return {Object}
 */
module.exports = function (path, queryParam, postParam) {
    return {
        // delay
        _timeout: 0,

        // http code status
        _status: 200,

        // response data
        _data: {
            // 0 for sucsuss, others for error
            status: 0,
            // error msg
            msg: '',
            data: ''
        }
    };
};