"use strict";
class ServerRequestHelper {
    constructor(service, req) {
        this.actions = [];
        // 只在后端执行
        this.Request = (option, type) => {
            let action = {
                type: type,
                data: option.data,
                req: this.req,
                promise: this.service.get(option.url).value
            };
            this.actions.push(action);
        };
        this.service = service;
        this.req = req;
    }
    getActions() {
        return this.actions;
    }
}
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = ServerRequestHelper;
