You need to sign in or sign up before continuing.
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: ''
        }
    };
};