jixiu.identityserver.jquery

需要安装 * jQuery * jixiu.openapis.jquery

Usage no npm install needed!

<script type="module">
  import jixiuIdentityserverJquery from 'https://cdn.skypack.dev/jixiu.identityserver.jquery';
</script>

README

需要安装

  • jQuery
  • jixiu.openapis.jquery

// 配置接口地址和APPKEY等信息
  openapis.init({
            server_endpoint: '',
            clientId: '',
            client_secret: '',
            scope: '',
            token_endpoint: ''
        });

openapis.{apiName}.{methods}

;(function () {
      var sdk = new Object();
          sdk.basepath = function()
            { 
              return openapis._settings.server_endpoint + '/identity'; 
            };

   /**
    * @name 微服务 - 订阅者 - 添加
    * @param id    Format - int64. 微服务的ID
    * @param code    邮箱校验加密字符串
    */
    sdk.ApiresourceAddsubscription = function(id,code,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/AddSubscription';
      var params = {};
      if (code !== undefined) { params['code'] =code }
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.authservers</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.authservers</code>
    */
    sdk.ApiresourceAuthservers = function(api_version) {
      var url = this.basepath() +'/ApiResource/AuthServers';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name 微服务代码对照表
    */
    sdk.ApiresourceCodes = function(api_version) {
      var url = this.basepath() +'/ApiResource/Codes';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.delete</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.delete</code>
    * @param id    Format - int64. ID
    */
    sdk.ApiresourceDelete = function(id,api_version) {
      var url = this.basepath() +'/ApiResource/'+id;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'DELETE'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.detail</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.detail</code>
    * @param id    Format - int64.
    */
    sdk.ApiresourceDetail = function(id,api_version) {
      var url = this.basepath() +'/ApiResource/'+id;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.deletepackage</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.deletepackage</code>
    * @param id    微服务的ID
    * @param packageId    包的ID
    */
    sdk.ApiresourceDeletepackage = function(id,packageId,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/Packages/'+packageId;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'DELETE'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.deleterelease</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.deleterelease</code>
    * @param id    Format - int64. 微服务的ID
    * @param releaseId    修订内容的ID
    */
    sdk.ApiresourceDeleterelease = function(id,releaseId,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/Releases/'+releaseId;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'DELETE'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.putrelease</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.putrelease</code>
    * @param id    Format - int64. 微服务的ID
    * @param releaseId    修订内容的ID
    */
    sdk.ApiresourcePutrelease = function(id,releaseId,model,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/Releases/'+releaseId;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'PUT'}); 
    }

   /**
    * @name 微服务 - 订阅者 - 取消
    * @param id    Format - int64. 微服务的ID
    * @param code    邮箱校验加密字符串
    */
    sdk.ApiresourceDelsubscription = function(id,code,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/DelSubscription';
      var params = {};
      if (code !== undefined) { params['code'] =code }
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.get</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.get</code>
    * @param q.name    名称
    * @param q.expandScopes    是否展开所有Scope(默认为false)
    * @param q.expandClaims    是否展开所有Claims(默认为false)
    * @param orderby    排序字段
    * @param asc    正序或倒序
    * @param skip    Format - int32. 跳过的数据条数
    * @param take    Format - int32. 将获取的数据条数
    * @param startTime    Format - date-time (as date-time in RFC3339). 开始时间。yyyy-MM-dd
    * @param endTime    Format - date-time (as date-time in RFC3339). 结束时间。yyyy-MM-dd
    */
    sdk.ApiresourceGet = function(q_name,q_expandScopes,q_expandClaims,orderby,asc,skip,take,startTime,endTime,api_version) {
      var url = this.basepath() +'/ApiResource';
      var params = {};
      if (q_name !== undefined) { params['q.name'] =q_name }
      if (q_expandScopes !== undefined) { params['q.expandScopes'] =q_expandScopes }
      if (q_expandClaims !== undefined) { params['q.expandClaims'] =q_expandClaims }
      if (orderby !== undefined) { params['orderby'] =orderby }
      if (asc !== undefined) { params['asc'] =asc }
      if (skip !== undefined) { params['skip'] =skip }
      if (take !== undefined) { params['take'] =take }
      if (startTime !== undefined) { params['startTime'] =startTime }
      if (endTime !== undefined) { params['endTime'] =endTime }
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.post</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.post</code>
    */
    sdk.ApiresourcePost = function(model,api_version) {
      var url = this.basepath() +'/ApiResource';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.put</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.put</code>
    */
    sdk.ApiresourcePut = function(model,api_version) {
      var url = this.basepath() +'/ApiResource';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'PUT'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.packages</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.packages</code>
    * @param id    微服务的ID
    */
    sdk.ApiresourcePackages = function(id,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/Packages';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.postpackages</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.postpackages</code>
    * @param id    微服务的ID
    */
    sdk.ApiresourcePostpackage = function(id,model,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/Packages';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.postrelease</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.postrelease</code>
    * @param id    Format - int64. 微服务的ID
    */
    sdk.ApiresourcePostrelease = function(id,model,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/Releases';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.releases</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.releases</code>
    * @param id    Format - int64. 微服务的ID
    * @param apiId    Api的ID
    */
    sdk.ApiresourceReleases = function(id,apiId,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/Releases';
      var params = {};
      if (apiId !== undefined) { params['apiId'] =apiId }
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.products</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.products</code>
    */
    sdk.ApiresourceProducts = function(api_version) {
      var url = this.basepath() +'/ApiResource/Products';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.publish</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.publish</code>
    * @param id    Format - int64. 微服务的ID
    */
    sdk.ApiresourcePublish = function(id,model,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/Publish';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'PUT'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.publishconfiguration</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.publishconfiguration</code>
    * @param id    Format - int64. 微服务的ID
    */
    sdk.ApiresourcePublishconfiguration = function(id,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/PublishConfiguration';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.publishrevision</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.publishrevision</code>
    * @param id    Format - int64. 微服务的ID
    */
    sdk.ApiresourcePublishrevision = function(id,model,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/PublishRevision';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.publishversion</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.publishversion</code>
    * @param id    Format - int64. 微服务的ID
    */
    sdk.ApiresourcePublishversion = function(id,model,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/PublishVersion';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.scopes</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.scopes</code>
    */
    sdk.ApiResourceScopes = function(api_version) {
      var url = this.basepath() +'/ApiResource/Scopes';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.setonlineversion</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.setonlineversion</code>
    * @param id    Format - int64.
    * @param revisionId    
    */
    sdk.ApiresourceSetonlineversion = function(id,revisionId,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/Versions/'+revisionId;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'POST'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.subscriptions</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.subscriptions</code>
    * @param id    Format - int64. 微服务的ID
    */
    sdk.ApiresourceSubscriptions = function(id,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/Subscriptions';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.verifyemail</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.verifyemail</code>
    * @param id    Format - int64. 微服务的ID
    */
    sdk.ApiresourceVerifyemail = function(id,model,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/Subscriptions/VerifyEmail';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.apiresource.versions</code>
<label>User Permissions:</label>
<code>ids4.ms.apiresource.versions</code>
    * @param id    Format - int64. 微服务的ID
    */
    sdk.ApiresourceVersions = function(id,api_version) {
      var url = this.basepath() +'/ApiResource/'+id+'/Versions';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name 客户端代码对照表
    */
    sdk.ClientCodes = function(api_version) {
      var url = this.basepath() +'/Client/Codes';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.client.delete</code>
<label>User Permissions:</label>
<code>ids4.ms.client.delete</code>
    * @param id    Format - int32.
    */
    sdk.ClientDelete = function(id,api_version) {
      var url = this.basepath() +'/Client/'+id;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'DELETE'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.client.detail</code>
<label>User Permissions:</label>
<code>ids4.ms.client.detail</code>
    * @param id    Format - int32.
    */
    sdk.ClientDetail = function(id,api_version) {
      var url = this.basepath() +'/Client/'+id;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.client.get</code>
<label>User Permissions:</label>
<code>ids4.ms.client.get</code>
    * @param q.ClientID    
    * @param q.ClientName    
    * @param orderby    排序字段
    * @param asc    正序或倒序
    * @param skip    Format - int32. 跳过的数据条数
    * @param take    Format - int32. 将获取的数据条数
    * @param startTime    Format - date-time (as date-time in RFC3339). 开始时间。yyyy-MM-dd
    * @param endTime    Format - date-time (as date-time in RFC3339). 结束时间。yyyy-MM-dd
    */
    sdk.ClientGet = function(q_ClientID,q_ClientName,orderby,asc,skip,take,startTime,endTime,api_version) {
      var url = this.basepath() +'/Client';
      var params = {};
      if (q_ClientID !== undefined) { params['q.ClientID'] =q_ClientID }
      if (q_ClientName !== undefined) { params['q.ClientName'] =q_ClientName }
      if (orderby !== undefined) { params['orderby'] =orderby }
      if (asc !== undefined) { params['asc'] =asc }
      if (skip !== undefined) { params['skip'] =skip }
      if (take !== undefined) { params['take'] =take }
      if (startTime !== undefined) { params['startTime'] =startTime }
      if (endTime !== undefined) { params['endTime'] =endTime }
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.client.post</code>
<label>User Permissions:</label>
<code>ids4.ms.client.post</code>
    */
    sdk.ClientPost = function(model,api_version) {
      var url = this.basepath() +'/Client';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.client.put</code>
<label>User Permissions:</label>
<code>ids4.ms.client.put</code>
    */
    sdk.ClientPut = function(model,api_version) {
      var url = this.basepath() +'/Client';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'PUT'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.client.issuetoken</code>
<label>User Permissions:</label>
<code>ids4.ms.client.issuetoken</code>
    */
    sdk.ClientIssuetoken = function(model,api_version) {
      var url = this.basepath() +'/Client/IssueToken';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.client.postsecretkey</code>
<label>User Permissions:</label>
<code>ids4.ms.client.postsecretkey</code>
    * @param id    Format - int32.
    */
    sdk.ClientPostSecretkey = function(id,model,api_version) {
      var url = this.basepath() +'/Client/'+id+'/Secretkey';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

   /**
    * @name 支持生成的客户端集合
    * @param fromCache    
    */
    sdk.CodegenClients = function(fromCache,api_version) {
      var url = this.basepath() +'/CodeGen/Clients';
      var params = {};
      if (fromCache !== undefined) { params['fromCache'] =fromCache }
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.codegen.githuboptions</code>
    * @param id    微服务ID
    */
    sdk.CodeGenGithubOptions = function(id,api_version) {
      var url = this.basepath() +'/CodeGen/'+id+'/GithubOptions';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.codegen.putgithuboptions</code>
            更新微服务的Github发布设置
    * @param id    微服务ID
    */
    sdk.CodeGenPutGithubOptions = function(id,model,api_version) {
      var url = this.basepath() +'/CodeGen/'+id+'/GithubOptions';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'PUT'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.codegen.npmoptions</code>
    * @param id    微服务ID
    * @param language    Format - int32. 语言
    */
    sdk.CodegenNpmoptions = function(id,language,api_version) {
      var url = this.basepath() +'/CodeGen/'+id+'/NpmOptions/'+language;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.codegen.putnpmoptions</code>
            更新微服务的NPM发布设置
    * @param id    微服务ID
    * @param language    Format - int32. 语言
    */
    sdk.CodegenPutnpmoptions = function(id,language,model,api_version) {
      var url = this.basepath() +'/CodeGen/'+id+'/NpmOptions/'+language;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'PUT'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.codegen.releasesdk</code>
    */
    sdk.CodegenReleasesdk = function(model,api_version) {
      var url = this.basepath() +'/CodeGen/ReleaseSDK';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

   /**
    * @name 支持生成的服务端集合
    * @param fromCache    
    */
    sdk.CodegenServers = function(fromCache,api_version) {
      var url = this.basepath() +'/CodeGen/Servers';
      var params = {};
      if (fromCache !== undefined) { params['fromCache'] =fromCache }
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name 文件代码对照表
    */
    sdk.FileCodes = function(api_version) {
      var url = this.basepath() +'/File/Codes';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.file.image</code>
    */
    sdk.FileImage = function(formData) {
      var url = this.basepath() +'/File/Image';
      return openapis._request({url:url,processData: false,contentType: false,data:formData,method:'POST'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.file.post</code>
    */
    sdk.FilePost = function(formData) {
      var url = this.basepath() +'/File';
      return openapis._request({url:url,processData: false,contentType: false,data:formData,method:'POST'}); 
    }

   /**
    * @name 身份服务代码对照表
    */
    sdk.IdentityresourceCodes = function(api_version) {
      var url = this.basepath() +'/IdentityResource/Codes';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.identityresource.delete</code>
<label>User Permissions:</label>
<code>ids4.ms.identityresource.delete</code>
    * @param id    Format - int32.
    */
    sdk.IdentityresourceDelete = function(id,api_version) {
      var url = this.basepath() +'/IdentityResource/'+id;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'DELETE'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.identityresource.detail</code>
<label>User Permissions:</label>
<code>ids4.ms.identityresource.detail</code>
    * @param id    Format - int32.
    */
    sdk.IdentityresourceDetail = function(id,api_version) {
      var url = this.basepath() +'/IdentityResource/'+id;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.identityresource.get</code>
<label>User Permissions:</label>
<code>ids4.ms.identityresource.get</code>
    * @param q.Name    
    * @param orderby    排序字段
    * @param asc    正序或倒序
    * @param skip    Format - int32. 跳过的数据条数
    * @param take    Format - int32. 将获取的数据条数
    * @param startTime    Format - date-time (as date-time in RFC3339). 开始时间。yyyy-MM-dd
    * @param endTime    Format - date-time (as date-time in RFC3339). 结束时间。yyyy-MM-dd
    */
    sdk.IdentityresourceGet = function(q_Name,orderby,asc,skip,take,startTime,endTime,api_version) {
      var url = this.basepath() +'/IdentityResource';
      var params = {};
      if (q_Name !== undefined) { params['q.Name'] =q_Name }
      if (orderby !== undefined) { params['orderby'] =orderby }
      if (asc !== undefined) { params['asc'] =asc }
      if (skip !== undefined) { params['skip'] =skip }
      if (take !== undefined) { params['take'] =take }
      if (startTime !== undefined) { params['startTime'] =startTime }
      if (endTime !== undefined) { params['endTime'] =endTime }
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.identityresource.post</code>
<label>User Permissions:</label>
<code>ids4.ms.identityresource.post</code>
    */
    sdk.IdentityresourcePost = function(model,api_version) {
      var url = this.basepath() +'/IdentityResource';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.identityresource.put</code>
<label>User Permissions:</label>
<code>ids4.ms.identityresource.put</code>
    */
    sdk.IdentityresourcePut = function(model,api_version) {
      var url = this.basepath() +'/IdentityResource';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'PUT'}); 
    }

   /**
    * @name 角色代码对照表
    */
    sdk.RoleCodes = function(api_version) {
      var url = this.basepath() +'/Role/Codes';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.role.delete</code>
<label>User Permissions:</label>
<code>ids4.ms.role.delete</code>
    * @param id    Format - int32.
    */
    sdk.RoleDelete = function(id,api_version) {
      var url = this.basepath() +'/Role/'+id;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'DELETE'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.role.detail</code>
<label>User Permissions:</label>
<code>ids4.ms.role.detail</code>
    * @param id    Format - int32.
    */
    sdk.RoleDetail = function(id,api_version) {
      var url = this.basepath() +'/Role/'+id;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.role.get</code>
<label>User Permissions:</label>
<code>ids4.ms.role.get</code>
    */
    sdk.RoleGet = function(api_version) {
      var url = this.basepath() +'/Role';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.role.post</code>
<label>User Permissions:</label>
<code>ids4.ms.role.post</code>
    */
    sdk.RolePost = function(model,api_version) {
      var url = this.basepath() +'/Role';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.role.put</code>
<label>User Permissions:</label>
<code>ids4.ms.role.put</code>
    */
    sdk.RolePut = function(model,api_version) {
      var url = this.basepath() +'/Role';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'PUT'}); 
    }

   /**
    * @name 租户代码对照表
    */
    sdk.TenantCodes = function(api_version) {
      var url = this.basepath() +'/Tenant/Codes';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.tenant.delete</code>
<label>User Permissions:</label>
<code>ids4.ms.tenant.delete</code>
    * @param id    Format - int32.
    */
    sdk.TenantDelete = function(id,api_version) {
      var url = this.basepath() +'/Tenant/'+id;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'DELETE'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.tenant.detail</code>
<label>User Permissions:</label>
<code>ids4.ms.tenant.detail</code>
    * @param id    Format - int32.
    */
    sdk.TenantDetail = function(id,api_version) {
      var url = this.basepath() +'/Tenant/'+id;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.tenant.get</code>
<label>User Permissions:</label>
<code>ids4.ms.tenant.get</code>
    * @param q.Host    站点域名
    * @param orderby    排序字段
    * @param asc    正序或倒序
    * @param skip    Format - int32. 跳过的数据条数
    * @param take    Format - int32. 将获取的数据条数
    * @param startTime    Format - date-time (as date-time in RFC3339). 开始时间。yyyy-MM-dd
    * @param endTime    Format - date-time (as date-time in RFC3339). 结束时间。yyyy-MM-dd
    */
    sdk.TenantGet = function(q_Host,orderby,asc,skip,take,startTime,endTime,api_version) {
      var url = this.basepath() +'/Tenant';
      var params = {};
      if (q_Host !== undefined) { params['q.Host'] =q_Host }
      if (orderby !== undefined) { params['orderby'] =orderby }
      if (asc !== undefined) { params['asc'] =asc }
      if (skip !== undefined) { params['skip'] =skip }
      if (take !== undefined) { params['take'] =take }
      if (startTime !== undefined) { params['startTime'] =startTime }
      if (endTime !== undefined) { params['endTime'] =endTime }
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.tenant.post</code>
<label>User Permissions:</label>
<code>ids4.ms.tenant.post</code>
    */
    sdk.TenantPost = function(model,api_version) {
      var url = this.basepath() +'/Tenant';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.tenant.put</code>
<label>User Permissions:</label>
<code>ids4.ms.tenant.put</code>
    */
    sdk.TenantPut = function(model,api_version) {
      var url = this.basepath() +'/Tenant';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'PUT'}); 
    }

   /**
    * @name 租户 - 详情(公共)
    * @param host    
    */
    sdk.TenantInfo = function(host,api_version) {
      var url = this.basepath() +'/Tenant/Info';
      var params = {};
      if (host !== undefined) { params['host'] =host }
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name 用户代码对照表
    */
    sdk.UserCodes = function(api_version) {
      var url = this.basepath() +'/User/Codes';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.user.delete</code>
<label>User Permissions:</label>
<code>ids4.ms.user.delete</code>
    * @param id    Format - int32.
    */
    sdk.UserDelete = function(id,api_version) {
      var url = this.basepath() +'/User/'+id;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'DELETE'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.user.detail</code>
<label>User Permissions:</label>
<code>ids4.ms.user.detail</code>
    * @param id    Format - int32.
    */
    sdk.UserDetail = function(id,api_version) {
      var url = this.basepath() +'/User/'+id;
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.user.get</code>
<label>User Permissions:</label>
<code>ids4.ms.user.get</code>
    * @param q.roles    用户角色标识,多个角色用","链接
    * @param q.phoneNumber    手机号
    * @param q.name    名称
    * @param q.email    邮箱
    * @param orderby    排序字段
    * @param asc    正序或倒序
    * @param skip    Format - int32. 跳过的数据条数
    * @param take    Format - int32. 将获取的数据条数
    * @param startTime    Format - date-time (as date-time in RFC3339). 开始时间。yyyy-MM-dd
    * @param endTime    Format - date-time (as date-time in RFC3339). 结束时间。yyyy-MM-dd
    */
    sdk.UserGet = function(q_roles,q_phoneNumber,q_name,q_email,orderby,asc,skip,take,startTime,endTime,api_version) {
      var url = this.basepath() +'/User';
      var params = {};
      if (q_roles !== undefined) { params['q.roles'] =q_roles }
      if (q_phoneNumber !== undefined) { params['q.phoneNumber'] =q_phoneNumber }
      if (q_name !== undefined) { params['q.name'] =q_name }
      if (q_email !== undefined) { params['q.email'] =q_email }
      if (orderby !== undefined) { params['orderby'] =orderby }
      if (asc !== undefined) { params['asc'] =asc }
      if (skip !== undefined) { params['skip'] =skip }
      if (take !== undefined) { params['take'] =take }
      if (startTime !== undefined) { params['startTime'] =startTime }
      if (endTime !== undefined) { params['endTime'] =endTime }
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.user.post</code>
<label>User Permissions:</label>
<code>ids4.ms.user.post</code>
    */
    sdk.UserPost = function(model,api_version) {
      var url = this.basepath() +'/User';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.user.put</code>
<label>User Permissions:</label>
<code>ids4.ms.user.put</code>
    */
    sdk.UserPut = function(model,api_version) {
      var url = this.basepath() +'/User';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'PUT'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.user.head</code>
<label>User Permissions:</label>
<code>ids4.ms.user.head</code>
    * @param PhoneNumber    PhoneNumber
    */
    sdk.UserHead = function(PhoneNumber,api_version) {
      var url = this.basepath() +'/User/Head';
      var params = {};
      if (PhoneNumber !== undefined) { params['PhoneNumber'] =PhoneNumber }
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,method:'GET'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.user.register</code>
<label>User Permissions:</label>
<code>ids4.ms.user.register</code>
            需验证手机号;邮箱如果填写了,也需要验证
    */
    sdk.UserRegister = function(model,api_version) {
      var url = this.basepath() +'/User/Register';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.user.verifyemail</code>
<label>User Permissions:</label>
<code>ids4.ms.user.verifyemail</code>
    */
    sdk.UserVerifyemail = function(model,api_version) {
      var url = this.basepath() +'/User/VerifyEmail';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

   /**
    * @name <label>Client Scopes:</label>
<code>ids4.ms.user.verifyphone</code>
<label>User Permissions:</label>
<code>ids4.ms.user.verifyphone</code>
    */
    sdk.UserVerifyphone = function(model,api_version) {
      var url = this.basepath() +'/User/VerifyPhone';
      var params = {};
      if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
      url += '?'+ $.param(params)
}
      return openapis._request({url:url,data:JSON.stringify(model),method:'POST'}); 
    }

            window.openapis.IdentityServer4MicroServiceClient = sdk;
            })()