"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
const MsClient = require("cn.keytop.midend.microservice.Client");
/**
 * 使用示例：
 * import * as msDemo1MsClient from 'cn.keytop.stc.ms.MsDemo1'
 *
 * const msDemo1MsClient = new msDemo1MsClient.MsDemo1()
 *  msDemo1MsClient.fun1('aaa','bbb','ccc')
 * .catch(error => {console.log(error)})
 * .then(value => {console.log(value)})
 *
 *
 * @author 微服务平台自动生成
 * @desc [null]接口定义
 * @date 2020-03-10 19:04:47
 **/
class MsDemo1 {
    constructor() {
        this.msId = 'cn.keytop.stc.ms.ms-demo1';
        this.version = '1.0.0';
        this.authType = MsClient.AuthType.BASE;
        this.serviceClient = new MsClient.ServiceClientImpl();
    }
    fun1(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14) {
        return __awaiter(this, void 0, void 0, function* () {
            let uri = '/base/fun1';
            let sid = `${this.msId}.${uri}`;
            let tags = '';
            let header = {};
            let paramMap = {};
            paramMap = { 'p1': p1, 'p2': p2, 'p3': p3, 'p4': p4, 'p5': p5, 'p6': p6, 'p7': p7, 'p8': p8, 'p9': p9, 'p10': p10, 'p11': p11, 'p12': p12, 'p13': p13, 'p14': p14 };
            return yield this.serviceClient.call(MsClient.HttpMethodType.POST, sid, this.version, tags, header, paramMap, {}, this.authType, MsClient.RequestBodyType.WWW_FORM);
        });
    }
    fun2test(modelA) {
        return __awaiter(this, void 0, void 0, function* () {
            let uri = '/base/fun2';
            let sid = `${this.msId}.${uri}`;
            let tags = '';
            let header = {};
            let paramMap = {};
            paramMap = Object.assign({}, modelA);
            return yield this.serviceClient.call(MsClient.HttpMethodType.PUT, sid, this.version, tags, header, paramMap, {}, this.authType, MsClient.RequestBodyType.WWW_FORM);
        });
    }
    fun3(f1) {
        return __awaiter(this, void 0, void 0, function* () {
            let uri = '/base/fu3';
            let sid = `${this.msId}.${uri}`;
            let tags = '';
            let header = {};
            let paramMap = {};
            paramMap = { 'f1': f1 };
            let response = yield this.serviceClient.get(sid, this.version, tags, header, paramMap, this.authType);
            if (!response) {
                return response;
            }
            else {
                return new Fun3$Models.ApiResult(response);
            }
        });
    }
    fun4(f1) {
        return __awaiter(this, void 0, void 0, function* () {
            let uri = '/base/fu4';
            let sid = `${this.msId}.${uri}`;
            let tags = '';
            let header = {};
            let paramMap = {};
            let bodyObj = f1;
            let response = yield this.serviceClient.call(MsClient.HttpMethodType.POST, sid, this.version, tags, header, paramMap, bodyObj, this.authType, MsClient.RequestBodyType.RAW_JSON);
            if (!response) {
                return response;
            }
            else {
                let __ms_result = new Array();
                if (Array.isArray(response)) {
                    response.forEach((e) => {
                        __ms_result.push(new Fun4$Models.ModelA(e));
                    });
                }
                return __ms_result;
            }
        });
    }
    test1(param1) {
        return __awaiter(this, void 0, void 0, function* () {
            let uri = '/test';
            let sid = `${this.msId}.${uri}`;
            let tags = '';
            let header = {};
            let paramMap = {};
            paramMap = { 'param1': param1 };
            let response = yield this.serviceClient.get(sid, this.version, tags, header, paramMap, this.authType);
            if (!response) {
                return response;
            }
            else {
                return new Test1$Models.ApiDemoResult(response);
            }
        });
    }
    callDemo2() {
        return __awaiter(this, void 0, void 0, function* () {
            let uri = '/callDemo2';
            let sid = `${this.msId}.${uri}`;
            let tags = '';
            let header = {};
            let paramMap = {};
            paramMap = {};
            let response = yield this.serviceClient.get(sid, this.version, tags, header, paramMap, this.authType);
            if (!response) {
                return response;
            }
            else {
                return new CallDemo2$Models.CallResult(response);
            }
        });
    }
}
exports.MsDemo1 = MsDemo1;
var Fun2test$Models;
(function (Fun2test$Models) {
    class ModelAAA {
    }
    Fun2test$Models.ModelAAA = ModelAAA;
    class ModelAA {
    }
    Fun2test$Models.ModelAA = ModelAA;
    class ModelA {
    }
    Fun2test$Models.ModelA = ModelA;
})(Fun2test$Models = exports.Fun2test$Models || (exports.Fun2test$Models = {}));
var Fun3$Models;
(function (Fun3$Models) {
    class ModelBB1 {
        constructor(value) {
            this._ms_response_data$$$ = value;
        }
        get f111() {
            return this._ms_response_data$$$.f111;
        }
        set f111(value) {
            this._ms_response_data$$$.f111 = value;
        }
    }
    Fun3$Models.ModelBB1 = ModelBB1;
    class ModelBB2 {
        constructor(value) {
            this._ms_response_data$$$ = value;
        }
    }
    Fun3$Models.ModelBB2 = ModelBB2;
    class ModelB {
        constructor(value) {
            this._ms_response_data$$$ = value;
            this._f1 = new ModelBB1(value.f1);
            this._f2 = new ModelBB2(value.f2);
        }
        get f1() {
            return this._f1;
        }
        set f1(value) {
            this._f1 = value;
        }
        get f2() {
            return this._f2;
        }
        set f2(value) {
            this._f2 = value;
        }
    }
    Fun3$Models.ModelB = ModelB;
    class ApiResult {
        constructor(value) {
            this._ms_response_data$$$ = value;
            this._data = new ModelB(value.data);
        }
        get responseCode() {
            return this._ms_response_data$$$.responseCode;
        }
        set responseCode(value) {
            this._ms_response_data$$$.responseCode = value;
        }
        get errorInfo() {
            return this._ms_response_data$$$.errorInfo;
        }
        set errorInfo(value) {
            this._ms_response_data$$$.errorInfo = value;
        }
        get data() {
            return this._data;
        }
        set data(value) {
            this._data = value;
        }
    }
    Fun3$Models.ApiResult = ApiResult;
})(Fun3$Models = exports.Fun3$Models || (exports.Fun3$Models = {}));
var Fun4$Models;
(function (Fun4$Models) {
    class ModelBB1 {
    }
    Fun4$Models.ModelBB1 = ModelBB1;
    class ModelBB2 {
    }
    Fun4$Models.ModelBB2 = ModelBB2;
    class ModelB {
    }
    Fun4$Models.ModelB = ModelB;
    class ModelAAA {
        constructor(value) {
            this._ms_response_data$$$ = value;
        }
        get f111() {
            return this._ms_response_data$$$.f111;
        }
        set f111(value) {
            this._ms_response_data$$$.f111 = value;
        }
    }
    Fun4$Models.ModelAAA = ModelAAA;
    class ModelAA {
        constructor(value) {
            this._ms_response_data$$$ = value;
        }
        get f11() {
            return this._ms_response_data$$$.f11;
        }
        set f11(value) {
            this._ms_response_data$$$.f11 = value;
        }
    }
    Fun4$Models.ModelAA = ModelAA;
    class ModelA {
        constructor(value) {
            this._ms_response_data$$$ = value;
            this._modelAA = new ModelAA(value.modelAA);
        }
        get f1() {
            return this._ms_response_data$$$.f1;
        }
        set f1(value) {
            this._ms_response_data$$$.f1 = value;
        }
        get modelAA() {
            return this._modelAA;
        }
        set modelAA(value) {
            this._modelAA = value;
        }
        get f0() {
            return this._ms_response_data$$$.f0;
        }
        set f0(value) {
            this._ms_response_data$$$.f0 = value;
        }
    }
    Fun4$Models.ModelA = ModelA;
})(Fun4$Models = exports.Fun4$Models || (exports.Fun4$Models = {}));
var Test1$Models;
(function (Test1$Models) {
    class ApiDemoResult {
        constructor(value) {
            this._ms_response_data$$$ = value;
        }
        get code() {
            return this._ms_response_data$$$.code;
        }
        set code(value) {
            this._ms_response_data$$$.code = value;
        }
        get message() {
            return this._ms_response_data$$$.message;
        }
        set message(value) {
            this._ms_response_data$$$.message = value;
        }
        get data() {
            return this._ms_response_data$$$.data;
        }
        set data(value) {
            this._ms_response_data$$$.data = value;
        }
    }
    Test1$Models.ApiDemoResult = ApiDemoResult;
})(Test1$Models = exports.Test1$Models || (exports.Test1$Models = {}));
var CallDemo2$Models;
(function (CallDemo2$Models) {
    class Map {
        constructor(value) {
            this._ms_response_data$$$ = value;
        }
    }
    CallDemo2$Models.Map = Map;
    class CallResult {
        constructor(value) {
            this._ms_response_data$$$ = value;
            this._callDemo2 = new Map(value.callDemo2);
        }
        get SUCCESS_CODE() {
            return this._ms_response_data$$$.SUCCESS_CODE;
        }
        set SUCCESS_CODE(value) {
            this._ms_response_data$$$.SUCCESS_CODE = value;
        }
        get NOT_LOGGED_CODE() {
            return this._ms_response_data$$$.NOT_LOGGED_CODE;
        }
        set NOT_LOGGED_CODE(value) {
            this._ms_response_data$$$.NOT_LOGGED_CODE = value;
        }
        get SYSTEM_ERROR_CODE() {
            return this._ms_response_data$$$.SYSTEM_ERROR_CODE;
        }
        set SYSTEM_ERROR_CODE(value) {
            this._ms_response_data$$$.SYSTEM_ERROR_CODE = value;
        }
        get BIZ_ERROR_CODE() {
            return this._ms_response_data$$$.BIZ_ERROR_CODE;
        }
        set BIZ_ERROR_CODE(value) {
            this._ms_response_data$$$.BIZ_ERROR_CODE = value;
        }
        get code() {
            return this._ms_response_data$$$.code;
        }
        set code(value) {
            this._ms_response_data$$$.code = value;
        }
        get message() {
            return this._ms_response_data$$$.message;
        }
        set message(value) {
            this._ms_response_data$$$.message = value;
        }
        get callDemo2() {
            return this._callDemo2;
        }
        set callDemo2(value) {
            this._callDemo2 = value;
        }
        get data() {
            return this._ms_response_data$$$.data;
        }
        set data(value) {
            this._ms_response_data$$$.data = value;
        }
    }
    CallDemo2$Models.CallResult = CallResult;
})(CallDemo2$Models = exports.CallDemo2$Models || (exports.CallDemo2$Models = {}));
//# sourceMappingURL=index.js.map