@hocgin/mock-kit
Version:
30 lines (29 loc) • 845 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _default = exports.default = function _default() {
var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var method = request.method,
url = request.url,
params = request.params,
body = request.body;
return {
body: body,
params: params,
url: url,
method: method,
paging: {
size: body === null || body === void 0 ? void 0 : body.size,
page: body === null || body === void 0 ? void 0 : body.page
},
scroll: {
nextId: body === null || body === void 0 ? void 0 : body.nextId,
size: body === null || body === void 0 ? void 0 : body.size
},
complete: {
size: body === null || body === void 0 ? void 0 : body.size
}
};
};