"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 demo1Client from 'cn.keytop.stc.Demo1Client'
 *
 * const demo1Client = new demo1Client.Demo1Client()
 *  demo1Client.fun1('aaa','bbb','ccc')
 * .catch(error => {console.log(error)})
 * .then(value => {console.log(value)})
 *
 *
 * @author 微服务平台自动生成
 * @desc [测试]接口定义
 * @date 2020-05-13 09:25:01
 **/
class Demo1Client {
    constructor(serviceClientConfig = new _$$$MsClient.ServiceClientConfig()) {
        this.pid = 'cn.keytop.stc.Demo1';
        this.version = '1.0';
        this.authType = _$$$MsClient.AuthType.BASE;
        this.serviceClient = new _$$$MsClient.ServiceClientImpl(serviceClientConfig);
    }
    addUser(sysUser) {
        return __awaiter(this, void 0, void 0, function* () {
            let sid = `${this.pid}.addUser`;
            let tags = '';
            let header = { 'pid': `${this.pid}` };
            let paramMap = {};
            paramMap = Object.assign({}, sysUser);
            return yield this.serviceClient.call(_$$$MsClient.HttpMethodType.POST, sid, this.version, tags, header, paramMap, {}, this.authType, _$$$MsClient.RequestBodyType.WWW_FORM);
        });
    }
    importUser(postFile) {
        return __awaiter(this, void 0, void 0, function* () {
            let sid = `${this.pid}.importUser`;
            let tags = '';
            let header = { 'pid': `${this.pid}` };
            let paramMap = {};
            paramMap = { 'postFile': postFile };
            return yield this.serviceClient.get(sid, this.version, tags, header, paramMap, this.authType);
        });
    }
    pay5(jsonParam) {
        return __awaiter(this, void 0, void 0, function* () {
            let sid = `${this.pid}.pay5`;
            let tags = '';
            let header = { 'pid': `${this.pid}` };
            let paramMap = {};
            paramMap = Object.assign({}, jsonParam);
            return yield this.serviceClient.call(_$$$MsClient.HttpMethodType.POST, sid, this.version, tags, header, paramMap, {}, this.authType, _$$$MsClient.RequestBodyType.WWW_FORM);
        });
    }
}
exports.Demo1Client = Demo1Client;
var AddUser$Models;
(function (AddUser$Models) {
    class ShippingAddress {
    }
    AddUser$Models.ShippingAddress = ShippingAddress;
    class SysUser {
    }
    AddUser$Models.SysUser = SysUser;
    class Data {
    }
    AddUser$Models.Data = Data;
    class OpResult {
    }
    AddUser$Models.OpResult = OpResult;
})(AddUser$Models = exports.AddUser$Models || (exports.AddUser$Models = {}));
var ImportUser$Models;
(function (ImportUser$Models) {
    class PostFile {
    }
    ImportUser$Models.PostFile = PostFile;
    class ShippingAddress {
    }
    ImportUser$Models.ShippingAddress = ShippingAddress;
    class Data {
    }
    ImportUser$Models.Data = Data;
    class OpResult {
    }
    ImportUser$Models.OpResult = OpResult;
})(ImportUser$Models = exports.ImportUser$Models || (exports.ImportUser$Models = {}));
var Pay5$Models;
(function (Pay5$Models) {
    class JsonParam {
    }
    Pay5$Models.JsonParam = JsonParam;
})(Pay5$Models = exports.Pay5$Models || (exports.Pay5$Models = {}));
//# sourceMappingURL=index.js.map