"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 demoCarMsClient from 'stc.ms.DemoCar'
 *
 * const demoCarMsClient = new demoCarMsClient.DemoCar()
 *  demoCarMsClient.fun1('aaa','bbb','ccc')
 * .catch(error => {console.log(error)})
 * .then(value => {console.log(value)})
 *
 *
 * @author 微服务平台自动生成
 * @desc [车辆服务]接口定义
 * @date 2020-03-26 13:49:33
 **/
class DemoCar {
    constructor() {
        this.msId = 'stc.ms.DemoCar';
        this.version = '1.0';
        this.authType = MsClient.AuthType.BASE;
        this.serviceClient = new MsClient.ServiceClientImpl();
    }
    getStcCar(carId) {
        return __awaiter(this, void 0, void 0, function* () {
            let uri = '/stcCar';
            let sid = `${this.msId}.${uri}`;
            let tags = '';
            let header = {};
            let paramMap = {};
            paramMap = { 'carId': carId };
            let response = yield this.serviceClient.get(sid, this.version, tags, header, paramMap, this.authType);
            if (!response) {
                return response;
            }
            else {
                return new GetStcCar$Models.StcCar(response);
            }
        });
    }
}
exports.DemoCar = DemoCar;
var GetStcCar$Models;
(function (GetStcCar$Models) {
    class StcCar {
        constructor(value) {
            this._ms_response_data$$$ = value;
        }
        get carId() {
            return this._ms_response_data$$$.carId;
        }
        set carId(value) {
            this._ms_response_data$$$.carId = value;
        }
        get carNum() {
            return this._ms_response_data$$$.carNum;
        }
        set carNum(value) {
            this._ms_response_data$$$.carNum = value;
        }
        get carColor() {
            return this._ms_response_data$$$.carColor;
        }
        set carColor(value) {
            this._ms_response_data$$$.carColor = value;
        }
    }
    GetStcCar$Models.StcCar = StcCar;
})(GetStcCar$Models = exports.GetStcCar$Models || (exports.GetStcCar$Models = {}));
//# sourceMappingURL=index.js.map