"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");
class MsMng {
    constructor(serviceClientConfig) {
        this.msId = 'cn.keytop.stc.test.ms-mng';
        this.version = '2.0';
        this.authType = MsClient.AuthType.BASE;
        this.serviceClientConfig = serviceClientConfig;
        this.serviceClient = new MsClient.ServiceClientImpl(this.serviceClientConfig);
    }
    getTest1(param1, param2) {
        return __awaiter(this, void 0, void 0, function* () {
            let uri = '/msServiceTest/getTest1';
            let sid = `${this.msId}.${uri}`;
            let tags = '';
            let header = {};
            let paramMap = { 'param1': param1, 'param2': param2 };
            return yield this.serviceClient.get(sid, this.version, tags, header, paramMap, this.authType);
        });
    }
    getTest3(param1, param2) {
        return __awaiter(this, void 0, void 0, function* () {
            let uri = '/msServiceTest/getTest3';
            let sid = `${this.msId}.${uri}`;
            let tags = '';
            let header = {};
            let paramMap = { 'param1': param1, 'param2': param2 };
            return yield this.serviceClient.get(sid, this.version, tags, header, paramMap, this.authType);
        });
    }
    getTest5(param1, param2) {
        return __awaiter(this, void 0, void 0, function* () {
            let uri = '/msServiceTest/getTest5';
            let sid = `${this.msId}.${uri}`;
            let tags = '';
            let header = {};
            let paramMap = { 'param1': param1, 'param2': param2 };
            return yield this.serviceClient.get(sid, this.version, tags, header, paramMap, this.authType);
        });
    }
    postTest2(bodyObj) {
        return __awaiter(this, void 0, void 0, function* () {
            let uri = '/msServiceTest/postTest2';
            let sid = `${this.msId}.${uri}`;
            let tags = '';
            let header = {};
            let paramMap = {};
            return yield this.serviceClient.post(sid, this.version, tags, header, paramMap, bodyObj, this.authType, MsClient.RequestBodyType.RAW_JSON);
        });
    }
}
exports.MsMng = MsMng;
class ModelTest1 {
}
exports.ModelTest1 = ModelTest1;
class ModelSubTest1 {
}
exports.ModelSubTest1 = ModelSubTest1;
class ModelTest2 {
}
exports.ModelTest2 = ModelTest2;
class Post2Param {
    get date() {
        if (this._date) {
            return new Date(this._date);
        }
        else {
            return;
        }
    }
    set date(value) {
        this._date = value;
    }
}
exports.Post2Param = Post2Param;
class Post2Result {
}
exports.Post2Result = Post2Result;
class OpResult {
}
exports.OpResult = OpResult;
class GetTest5Result {
    get thisLong() {
        console.log('get thisLong ');
        if (this._thisLong) {
            return new Date(this._thisLong);
        }
        else {
            return;
        }
    }
    set thisLong(value) {
        console.log('set thisLong ');
        this._thisLong = value;
    }
}
exports.GetTest5Result = GetTest5Result;
//# sourceMappingURL=MsMng.js.map