2024-04-01 10:17:47 +08:00
|
|
|
|
// Filename: /Users/liur/work/api-sdk-gen/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/api_doc.mustache
|
2023-12-27 20:14:28 +08:00
|
|
|
|
# OrganizationApi
|
|
|
|
|
|
|
|
|
|
All URIs are relative to *http://localhost*
|
|
|
|
|
|
|
|
|
|
| Method | HTTP request | Description |
|
|
|
|
|
|------------- | ------------- | -------------|
|
|
|
|
|
| [**createNode**](OrganizationApi.md#createNode) | **POST** /v1/tree-nodes | 创建节点 |
|
|
|
|
|
| [**createOrganization**](OrganizationApi.md#createOrganization) | **POST** /v1/core-objects | 创建组织关系 |
|
|
|
|
|
| [**deleteMembers**](OrganizationApi.md#deleteMembers) | **DELETE** /v1/tree-users | 从节点移除用户 |
|
|
|
|
|
| [**deleteNode**](OrganizationApi.md#deleteNode) | **DELETE** /v1/tree-nodes/{id} | 删除节点 |
|
|
|
|
|
| [**deleteOrganization**](OrganizationApi.md#deleteOrganization) | **DELETE** /v1/core-objects/{id} | 删除组织关系 |
|
|
|
|
|
| [**getChildrenNodes**](OrganizationApi.md#getChildrenNodes) | **GET** /v1/tree-nodes/{id}/children | 获取子节点列表 |
|
|
|
|
|
| [**getMembers**](OrganizationApi.md#getMembers) | **GET** /v1/tree-users | 获取与用户关联的组织关系列表 |
|
|
|
|
|
| [**getNode**](OrganizationApi.md#getNode) | **GET** /v1/tree-nodes/{id} | 查询节点信息 |
|
|
|
|
|
| [**getNodeMembers**](OrganizationApi.md#getNodeMembers) | **GET** /v1/tree-nodes/{id}/tree-users | 获取成员信息列表 |
|
|
|
|
|
| [**getNodeParent**](OrganizationApi.md#getNodeParent) | **GET** /v1/tree-nodes/{id}/parent | 查询父节点 |
|
|
|
|
|
| [**getNodes**](OrganizationApi.md#getNodes) | **GET** /v1/tree-nodes | 查询节点信息列表 |
|
|
|
|
|
| [**getOrganization**](OrganizationApi.md#getOrganization) | **GET** /v1/core-objects/{id} | 获取组织关系基本信息 |
|
|
|
|
|
| [**getOrganizations**](OrganizationApi.md#getOrganizations) | **GET** /v1/core-objects | 获取组织关系列表 |
|
|
|
|
|
| [**updateMember**](OrganizationApi.md#updateMember) | **PATCH** /v1/tree-users/{id} | 更新用户节点 |
|
|
|
|
|
| [**updateNode**](OrganizationApi.md#updateNode) | **PATCH** /v1/tree-nodes/{id} | 编辑节点 |
|
|
|
|
|
| [**updateOrganization**](OrganizationApi.md#updateOrganization) | **PATCH** /v1/core-objects/{id} | 修改组织关系基本信息 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="createNode"></a>
|
|
|
|
|
# **createNode**
|
|
|
|
|
> DeleteOrganization200Response createNode(contentType).createNodeRequest(createNodeRequest).execute();
|
|
|
|
|
|
|
|
|
|
创建节点
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```java
|
|
|
|
|
// Import classes:
|
|
|
|
|
import com.idmesh.ApiClient;
|
|
|
|
|
import com.idmesh.ApiException;
|
|
|
|
|
import com.idmesh.Configuration;
|
|
|
|
|
import com.idmesh.models.*;
|
|
|
|
|
import com.idmesh.api.OrganizationApi;
|
|
|
|
|
|
|
|
|
|
public class Example {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
ApiClient defaultClient = new ApiClient("basePath", "ak", "sk");
|
|
|
|
|
|
|
|
|
|
OrganizationApi apiInstance = new OrganizationApi(defaultClient);
|
|
|
|
|
String contentType = "application/json"; // String |
|
|
|
|
|
CreateNodeRequest createNodeRequest = new CreateNodeRequest(); // CreateNodeRequest |
|
|
|
|
|
try {
|
|
|
|
|
DeleteOrganization200Response result = apiInstance.createNode(contentType)
|
|
|
|
|
.createNodeRequest(createNodeRequest)
|
|
|
|
|
.execute();
|
|
|
|
|
System.out.println(result);
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
System.err.println("Exception when calling OrganizationApi#createNode");
|
|
|
|
|
System.err.println("Status code: " + e.getCode());
|
|
|
|
|
System.err.println("Reason: " + e.getResponseBody());
|
|
|
|
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
| Name | Type | Description | Notes |
|
|
|
|
|
|------------- | ------------- | ------------- | -------------|
|
|
|
|
|
| **contentType** | **String**| | |
|
|
|
|
|
| **createNodeRequest** | [**CreateNodeRequest**](CreateNodeRequest.md)| | [optional] |
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**DeleteOrganization200Response**](DeleteOrganization200Response.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: application/json
|
|
|
|
|
- **Accept**: application/json
|
|
|
|
|
|
|
|
|
|
### HTTP response details
|
|
|
|
|
| Status code | Description | Response headers |
|
|
|
|
|
|-------------|-------------|------------------|
|
|
|
|
|
| **200** | 成功 | - |
|
|
|
|
|
| **400** | 参数错误 | - |
|
|
|
|
|
|
|
|
|
|
<a id="createOrganization"></a>
|
|
|
|
|
# **createOrganization**
|
|
|
|
|
> CreateOrganization200Response createOrganization(contentType).createOrganizationRequest(createOrganizationRequest).execute();
|
|
|
|
|
|
|
|
|
|
创建组织关系
|
|
|
|
|
|
|
|
|
|
创建组织关系的元数据,同时创建根节点
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```java
|
|
|
|
|
// Import classes:
|
|
|
|
|
import com.idmesh.ApiClient;
|
|
|
|
|
import com.idmesh.ApiException;
|
|
|
|
|
import com.idmesh.Configuration;
|
|
|
|
|
import com.idmesh.models.*;
|
|
|
|
|
import com.idmesh.api.OrganizationApi;
|
|
|
|
|
|
|
|
|
|
public class Example {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
ApiClient defaultClient = new ApiClient("basePath", "ak", "sk");
|
|
|
|
|
|
|
|
|
|
OrganizationApi apiInstance = new OrganizationApi(defaultClient);
|
|
|
|
|
String contentType = "application/json"; // String |
|
|
|
|
|
CreateOrganizationRequest createOrganizationRequest = new CreateOrganizationRequest(); // CreateOrganizationRequest |
|
|
|
|
|
try {
|
|
|
|
|
CreateOrganization200Response result = apiInstance.createOrganization(contentType)
|
|
|
|
|
.createOrganizationRequest(createOrganizationRequest)
|
|
|
|
|
.execute();
|
|
|
|
|
System.out.println(result);
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
System.err.println("Exception when calling OrganizationApi#createOrganization");
|
|
|
|
|
System.err.println("Status code: " + e.getCode());
|
|
|
|
|
System.err.println("Reason: " + e.getResponseBody());
|
|
|
|
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
| Name | Type | Description | Notes |
|
|
|
|
|
|------------- | ------------- | ------------- | -------------|
|
|
|
|
|
| **contentType** | **String**| | |
|
|
|
|
|
| **createOrganizationRequest** | [**CreateOrganizationRequest**](CreateOrganizationRequest.md)| | [optional] |
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**CreateOrganization200Response**](CreateOrganization200Response.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: application/json
|
|
|
|
|
- **Accept**: application/json
|
|
|
|
|
|
|
|
|
|
### HTTP response details
|
|
|
|
|
| Status code | Description | Response headers |
|
|
|
|
|
|-------------|-------------|------------------|
|
|
|
|
|
| **200** | 成功 | - |
|
|
|
|
|
| **400** | 参数错误 | - |
|
|
|
|
|
|
|
|
|
|
<a id="deleteMembers"></a>
|
|
|
|
|
# **deleteMembers**
|
|
|
|
|
> DeleteOrganization200Response deleteMembers(contentType).deleteMembersRequest(deleteMembersRequest).execute();
|
|
|
|
|
|
|
|
|
|
从节点移除用户
|
|
|
|
|
|
|
|
|
|
移除用户,uri参数中的ID和json中的参数,至少有其一
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```java
|
|
|
|
|
// Import classes:
|
|
|
|
|
import com.idmesh.ApiClient;
|
|
|
|
|
import com.idmesh.ApiException;
|
|
|
|
|
import com.idmesh.Configuration;
|
|
|
|
|
import com.idmesh.models.*;
|
|
|
|
|
import com.idmesh.api.OrganizationApi;
|
|
|
|
|
|
|
|
|
|
public class Example {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
ApiClient defaultClient = new ApiClient("basePath", "ak", "sk");
|
|
|
|
|
|
|
|
|
|
OrganizationApi apiInstance = new OrganizationApi(defaultClient);
|
|
|
|
|
String contentType = "application/x-www-form-urlencoded"; // String |
|
|
|
|
|
DeleteMembersRequest deleteMembersRequest = new DeleteMembersRequest(); // DeleteMembersRequest |
|
|
|
|
|
try {
|
|
|
|
|
DeleteOrganization200Response result = apiInstance.deleteMembers(contentType)
|
|
|
|
|
.deleteMembersRequest(deleteMembersRequest)
|
|
|
|
|
.execute();
|
|
|
|
|
System.out.println(result);
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
System.err.println("Exception when calling OrganizationApi#deleteMembers");
|
|
|
|
|
System.err.println("Status code: " + e.getCode());
|
|
|
|
|
System.err.println("Reason: " + e.getResponseBody());
|
|
|
|
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
| Name | Type | Description | Notes |
|
|
|
|
|
|------------- | ------------- | ------------- | -------------|
|
|
|
|
|
| **contentType** | **String**| | |
|
|
|
|
|
| **deleteMembersRequest** | [**DeleteMembersRequest**](DeleteMembersRequest.md)| | [optional] |
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**DeleteOrganization200Response**](DeleteOrganization200Response.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: application/json
|
|
|
|
|
- **Accept**: application/json
|
|
|
|
|
|
|
|
|
|
### HTTP response details
|
|
|
|
|
| Status code | Description | Response headers |
|
|
|
|
|
|-------------|-------------|------------------|
|
|
|
|
|
| **200** | 成功 | - |
|
|
|
|
|
| **400** | 参数错误 | - |
|
|
|
|
|
|
|
|
|
|
<a id="deleteNode"></a>
|
|
|
|
|
# **deleteNode**
|
|
|
|
|
> DeleteNode200Response deleteNode(id, objectCode, contentType).execute();
|
|
|
|
|
|
|
|
|
|
删除节点
|
|
|
|
|
|
|
|
|
|
如果该节点有子节点则不可删除,需要先删除所有子节点。
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```java
|
|
|
|
|
// Import classes:
|
|
|
|
|
import com.idmesh.ApiClient;
|
|
|
|
|
import com.idmesh.ApiException;
|
|
|
|
|
import com.idmesh.Configuration;
|
|
|
|
|
import com.idmesh.models.*;
|
|
|
|
|
import com.idmesh.api.OrganizationApi;
|
|
|
|
|
|
|
|
|
|
public class Example {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
ApiClient defaultClient = new ApiClient("basePath", "ak", "sk");
|
|
|
|
|
|
|
|
|
|
OrganizationApi apiInstance = new OrganizationApi(defaultClient);
|
|
|
|
|
String id = "id_example"; // String |
|
|
|
|
|
String objectCode = "org_tree"; // String | 树对象code
|
|
|
|
|
String contentType = "application/x-www-form-urlencoded"; // String |
|
|
|
|
|
try {
|
|
|
|
|
DeleteNode200Response result = apiInstance.deleteNode(id, objectCode, contentType)
|
|
|
|
|
.execute();
|
|
|
|
|
System.out.println(result);
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
System.err.println("Exception when calling OrganizationApi#deleteNode");
|
|
|
|
|
System.err.println("Status code: " + e.getCode());
|
|
|
|
|
System.err.println("Reason: " + e.getResponseBody());
|
|
|
|
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
| Name | Type | Description | Notes |
|
|
|
|
|
|------------- | ------------- | ------------- | -------------|
|
|
|
|
|
| **id** | **String**| | |
|
|
|
|
|
| **objectCode** | **String**| 树对象code | |
|
|
|
|
|
| **contentType** | **String**| | |
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**DeleteNode200Response**](DeleteNode200Response.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: Not defined
|
|
|
|
|
- **Accept**: application/json
|
|
|
|
|
|
|
|
|
|
### HTTP response details
|
|
|
|
|
| Status code | Description | Response headers |
|
|
|
|
|
|-------------|-------------|------------------|
|
|
|
|
|
| **200** | 成功 | - |
|
|
|
|
|
| **400** | 参数错误 | - |
|
|
|
|
|
|
|
|
|
|
<a id="deleteOrganization"></a>
|
|
|
|
|
# **deleteOrganization**
|
|
|
|
|
> DeleteOrganization200Response deleteOrganization(id, contentType).execute();
|
|
|
|
|
|
|
|
|
|
删除组织关系
|
|
|
|
|
|
|
|
|
|
如果该组织关系有子节点则不可删
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```java
|
|
|
|
|
// Import classes:
|
|
|
|
|
import com.idmesh.ApiClient;
|
|
|
|
|
import com.idmesh.ApiException;
|
|
|
|
|
import com.idmesh.Configuration;
|
|
|
|
|
import com.idmesh.models.*;
|
|
|
|
|
import com.idmesh.api.OrganizationApi;
|
|
|
|
|
|
|
|
|
|
public class Example {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
ApiClient defaultClient = new ApiClient("basePath", "ak", "sk");
|
|
|
|
|
|
|
|
|
|
OrganizationApi apiInstance = new OrganizationApi(defaultClient);
|
|
|
|
|
String id = "id_example"; // String |
|
|
|
|
|
String contentType = "application/x-www-form-urlencoded"; // String |
|
|
|
|
|
try {
|
|
|
|
|
DeleteOrganization200Response result = apiInstance.deleteOrganization(id, contentType)
|
|
|
|
|
.execute();
|
|
|
|
|
System.out.println(result);
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
System.err.println("Exception when calling OrganizationApi#deleteOrganization");
|
|
|
|
|
System.err.println("Status code: " + e.getCode());
|
|
|
|
|
System.err.println("Reason: " + e.getResponseBody());
|
|
|
|
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
| Name | Type | Description | Notes |
|
|
|
|
|
|------------- | ------------- | ------------- | -------------|
|
|
|
|
|
| **id** | **String**| | |
|
|
|
|
|
| **contentType** | **String**| | |
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**DeleteOrganization200Response**](DeleteOrganization200Response.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: multipart/form-data
|
|
|
|
|
- **Accept**: application/json
|
|
|
|
|
|
|
|
|
|
### HTTP response details
|
|
|
|
|
| Status code | Description | Response headers |
|
|
|
|
|
|-------------|-------------|------------------|
|
|
|
|
|
| **200** | 成功 | - |
|
|
|
|
|
| **400** | 参数错误 | - |
|
|
|
|
|
|
|
|
|
|
<a id="getChildrenNodes"></a>
|
|
|
|
|
# **getChildrenNodes**
|
|
|
|
|
> List<TreeNode> getChildrenNodes(id, mode, objectCode).execute();
|
|
|
|
|
|
|
|
|
|
获取子节点列表
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```java
|
|
|
|
|
// Import classes:
|
|
|
|
|
import com.idmesh.ApiClient;
|
|
|
|
|
import com.idmesh.ApiException;
|
|
|
|
|
import com.idmesh.Configuration;
|
|
|
|
|
import com.idmesh.models.*;
|
|
|
|
|
import com.idmesh.api.OrganizationApi;
|
|
|
|
|
|
|
|
|
|
public class Example {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
ApiClient defaultClient = new ApiClient("basePath", "ak", "sk");
|
|
|
|
|
|
|
|
|
|
OrganizationApi apiInstance = new OrganizationApi(defaultClient);
|
|
|
|
|
String id = "id_example"; // String |
|
|
|
|
|
String mode = "001"; // String | // mode - 低->高 bit // 第1位:是否获得指针节点所对应的真实结点,1-是,0-否 // 第2位:是否展开WeakNode,即节点中类型不同的节点,1-展开,0-不展开 // 第3位:是否递归地展开节点(不建议)
|
|
|
|
|
String objectCode = "objectCode_example"; // String | 当id = 0时必填,创建树时的object_code
|
|
|
|
|
try {
|
|
|
|
|
List<TreeNode> result = apiInstance.getChildrenNodes(id, mode, objectCode)
|
|
|
|
|
.execute();
|
|
|
|
|
System.out.println(result);
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
System.err.println("Exception when calling OrganizationApi#getChildrenNodes");
|
|
|
|
|
System.err.println("Status code: " + e.getCode());
|
|
|
|
|
System.err.println("Reason: " + e.getResponseBody());
|
|
|
|
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
| Name | Type | Description | Notes |
|
|
|
|
|
|------------- | ------------- | ------------- | -------------|
|
|
|
|
|
| **id** | **String**| | |
|
|
|
|
|
| **mode** | **String**| // mode - 低->高 bit // 第1位:是否获得指针节点所对应的真实结点,1-是,0-否 // 第2位:是否展开WeakNode,即节点中类型不同的节点,1-展开,0-不展开 // 第3位:是否递归地展开节点(不建议) | |
|
|
|
|
|
| **objectCode** | **String**| 当id = 0时必填,创建树时的object_code | |
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**List<TreeNode>**](TreeNode.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: Not defined
|
|
|
|
|
- **Accept**: application/json
|
|
|
|
|
|
|
|
|
|
### HTTP response details
|
|
|
|
|
| Status code | Description | Response headers |
|
|
|
|
|
|-------------|-------------|------------------|
|
|
|
|
|
| **200** | 成功 | - |
|
|
|
|
|
| **400** | 参数错误 | - |
|
|
|
|
|
|
|
|
|
|
<a id="getMembers"></a>
|
|
|
|
|
# **getMembers**
|
|
|
|
|
> List<GetMembers200ResponseInner> getMembers(userId).execute();
|
|
|
|
|
|
|
|
|
|
获取与用户关联的组织关系列表
|
|
|
|
|
|
|
|
|
|
根据用户id获取与用户关联的组织关系列表
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```java
|
|
|
|
|
// Import classes:
|
|
|
|
|
import com.idmesh.ApiClient;
|
|
|
|
|
import com.idmesh.ApiException;
|
|
|
|
|
import com.idmesh.Configuration;
|
|
|
|
|
import com.idmesh.models.*;
|
|
|
|
|
import com.idmesh.api.OrganizationApi;
|
|
|
|
|
|
|
|
|
|
public class Example {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
ApiClient defaultClient = new ApiClient("basePath", "ak", "sk");
|
|
|
|
|
|
|
|
|
|
OrganizationApi apiInstance = new OrganizationApi(defaultClient);
|
|
|
|
|
String userId = "userId_example"; // String | 用户ID
|
|
|
|
|
try {
|
|
|
|
|
List<GetMembers200ResponseInner> result = apiInstance.getMembers(userId)
|
|
|
|
|
.execute();
|
|
|
|
|
System.out.println(result);
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
System.err.println("Exception when calling OrganizationApi#getMembers");
|
|
|
|
|
System.err.println("Status code: " + e.getCode());
|
|
|
|
|
System.err.println("Reason: " + e.getResponseBody());
|
|
|
|
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
| Name | Type | Description | Notes |
|
|
|
|
|
|------------- | ------------- | ------------- | -------------|
|
|
|
|
|
| **userId** | **String**| 用户ID | |
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**List<GetMembers200ResponseInner>**](GetMembers200ResponseInner.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: Not defined
|
|
|
|
|
- **Accept**: application/json
|
|
|
|
|
|
|
|
|
|
### HTTP response details
|
|
|
|
|
| Status code | Description | Response headers |
|
|
|
|
|
|-------------|-------------|------------------|
|
|
|
|
|
| **200** | 成功 | - |
|
|
|
|
|
| **400** | 参数错误 | - |
|
|
|
|
|
|
|
|
|
|
<a id="getNode"></a>
|
|
|
|
|
# **getNode**
|
|
|
|
|
> TreeNode getNode(id).execute();
|
|
|
|
|
|
|
|
|
|
查询节点信息
|
|
|
|
|
|
|
|
|
|
根据ID查询节点信息
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```java
|
|
|
|
|
// Import classes:
|
|
|
|
|
import com.idmesh.ApiClient;
|
|
|
|
|
import com.idmesh.ApiException;
|
|
|
|
|
import com.idmesh.Configuration;
|
|
|
|
|
import com.idmesh.models.*;
|
|
|
|
|
import com.idmesh.api.OrganizationApi;
|
|
|
|
|
|
|
|
|
|
public class Example {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
ApiClient defaultClient = new ApiClient("basePath", "ak", "sk");
|
|
|
|
|
|
|
|
|
|
OrganizationApi apiInstance = new OrganizationApi(defaultClient);
|
|
|
|
|
String id = "id_example"; // String |
|
|
|
|
|
try {
|
|
|
|
|
TreeNode result = apiInstance.getNode(id)
|
|
|
|
|
.execute();
|
|
|
|
|
System.out.println(result);
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
System.err.println("Exception when calling OrganizationApi#getNode");
|
|
|
|
|
System.err.println("Status code: " + e.getCode());
|
|
|
|
|
System.err.println("Reason: " + e.getResponseBody());
|
|
|
|
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
| Name | Type | Description | Notes |
|
|
|
|
|
|------------- | ------------- | ------------- | -------------|
|
|
|
|
|
| **id** | **String**| | |
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**TreeNode**](TreeNode.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: Not defined
|
|
|
|
|
- **Accept**: application/json
|
|
|
|
|
|
|
|
|
|
### HTTP response details
|
|
|
|
|
| Status code | Description | Response headers |
|
|
|
|
|
|-------------|-------------|------------------|
|
|
|
|
|
| **200** | 成功 | - |
|
|
|
|
|
| **400** | 参数错误 | - |
|
|
|
|
|
|
|
|
|
|
<a id="getNodeMembers"></a>
|
|
|
|
|
# **getNodeMembers**
|
|
|
|
|
> GetNodeMembers200Response getNodeMembers(id).relationType(relationType).isDefault(isDefault).displayName(displayName).username(username).mode(mode).pageNum(pageNum).pageSize(pageSize).pageSort(pageSort).execute();
|
|
|
|
|
|
|
|
|
|
获取成员信息列表
|
|
|
|
|
|
|
|
|
|
根据组织节点ID获取成员信息列表
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```java
|
|
|
|
|
// Import classes:
|
|
|
|
|
import com.idmesh.ApiClient;
|
|
|
|
|
import com.idmesh.ApiException;
|
|
|
|
|
import com.idmesh.Configuration;
|
|
|
|
|
import com.idmesh.models.*;
|
|
|
|
|
import com.idmesh.api.OrganizationApi;
|
|
|
|
|
|
|
|
|
|
public class Example {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
ApiClient defaultClient = new ApiClient("basePath", "ak", "sk");
|
|
|
|
|
|
|
|
|
|
OrganizationApi apiInstance = new OrganizationApi(defaultClient);
|
|
|
|
|
String id = ""; // String | node id
|
|
|
|
|
String relationType = "relationType_example"; // String | 关联类型,用于区分多重关联
|
|
|
|
|
String isDefault = "isDefault_example"; // String | 是否默认关系 1是,0否
|
|
|
|
|
String displayName = "displayName_example"; // String | 用户显示名
|
|
|
|
|
String username = ""; // String | 用户名,支持模糊搜索(仅前缀)
|
|
|
|
|
String mode = "000"; // String | // mode - 低->高 bit // 第1位:是否获得指针节点所对应的真实结点,1-是,0-否 // 第2位:是否展开WeakNode,即节点中类型不同的节点,1-展开,0-不展开 // 第3位:是否递归地展开节点(不建议)
|
|
|
|
|
Integer pageNum = ; // Integer | 起始页,默认1
|
|
|
|
|
Integer pageSize = ; // Integer | 页大小,默认10
|
|
|
|
|
String pageSort = ""; // String | 排序方式,格式:字段[排序方式]
|
|
|
|
|
try {
|
|
|
|
|
GetNodeMembers200Response result = apiInstance.getNodeMembers(id)
|
|
|
|
|
.relationType(relationType)
|
|
|
|
|
.isDefault(isDefault)
|
|
|
|
|
.displayName(displayName)
|
|
|
|
|
.username(username)
|
|
|
|
|
.mode(mode)
|
|
|
|
|
.pageNum(pageNum)
|
|
|
|
|
.pageSize(pageSize)
|
|
|
|
|
.pageSort(pageSort)
|
|
|
|
|
.execute();
|
|
|
|
|
System.out.println(result);
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
System.err.println("Exception when calling OrganizationApi#getNodeMembers");
|
|
|
|
|
System.err.println("Status code: " + e.getCode());
|
|
|
|
|
System.err.println("Reason: " + e.getResponseBody());
|
|
|
|
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
| Name | Type | Description | Notes |
|
|
|
|
|
|------------- | ------------- | ------------- | -------------|
|
|
|
|
|
| **id** | **String**| node id | |
|
|
|
|
|
| **relationType** | **String**| 关联类型,用于区分多重关联 | [optional] |
|
|
|
|
|
| **isDefault** | **String**| 是否默认关系 1是,0否 | [optional] |
|
|
|
|
|
| **displayName** | **String**| 用户显示名 | [optional] |
|
|
|
|
|
| **username** | **String**| 用户名,支持模糊搜索(仅前缀) | [optional] |
|
|
|
|
|
| **mode** | **String**| // mode - 低->高 bit // 第1位:是否获得指针节点所对应的真实结点,1-是,0-否 // 第2位:是否展开WeakNode,即节点中类型不同的节点,1-展开,0-不展开 // 第3位:是否递归地展开节点(不建议) | [optional] |
|
|
|
|
|
| **pageNum** | **Integer**| 起始页,默认1 | [optional] |
|
|
|
|
|
| **pageSize** | **Integer**| 页大小,默认10 | [optional] |
|
|
|
|
|
| **pageSort** | **String**| 排序方式,格式:字段[排序方式] | [optional] |
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**GetNodeMembers200Response**](GetNodeMembers200Response.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: Not defined
|
|
|
|
|
- **Accept**: application/json
|
|
|
|
|
|
|
|
|
|
### HTTP response details
|
|
|
|
|
| Status code | Description | Response headers |
|
|
|
|
|
|-------------|-------------|------------------|
|
|
|
|
|
| **200** | 成功 | - |
|
|
|
|
|
| **400** | 参数错误 | - |
|
|
|
|
|
|
|
|
|
|
<a id="getNodeParent"></a>
|
|
|
|
|
# **getNodeParent**
|
|
|
|
|
> List<TreeNode> getNodeParent(id).execute();
|
|
|
|
|
|
|
|
|
|
查询父节点
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```java
|
|
|
|
|
// Import classes:
|
|
|
|
|
import com.idmesh.ApiClient;
|
|
|
|
|
import com.idmesh.ApiException;
|
|
|
|
|
import com.idmesh.Configuration;
|
|
|
|
|
import com.idmesh.models.*;
|
|
|
|
|
import com.idmesh.api.OrganizationApi;
|
|
|
|
|
|
|
|
|
|
public class Example {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
ApiClient defaultClient = new ApiClient("basePath", "ak", "sk");
|
|
|
|
|
|
|
|
|
|
OrganizationApi apiInstance = new OrganizationApi(defaultClient);
|
|
|
|
|
String id = "id_example"; // String |
|
|
|
|
|
try {
|
|
|
|
|
List<TreeNode> result = apiInstance.getNodeParent(id)
|
|
|
|
|
.execute();
|
|
|
|
|
System.out.println(result);
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
System.err.println("Exception when calling OrganizationApi#getNodeParent");
|
|
|
|
|
System.err.println("Status code: " + e.getCode());
|
|
|
|
|
System.err.println("Reason: " + e.getResponseBody());
|
|
|
|
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
| Name | Type | Description | Notes |
|
|
|
|
|
|------------- | ------------- | ------------- | -------------|
|
|
|
|
|
| **id** | **String**| | |
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**List<TreeNode>**](TreeNode.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: Not defined
|
|
|
|
|
- **Accept**: application/json
|
|
|
|
|
|
|
|
|
|
### HTTP response details
|
|
|
|
|
| Status code | Description | Response headers |
|
|
|
|
|
|-------------|-------------|------------------|
|
|
|
|
|
| **200** | 成功 | - |
|
|
|
|
|
| **400** | 参数错误 | - |
|
|
|
|
|
|
|
|
|
|
<a id="getNodes"></a>
|
|
|
|
|
# **getNodes**
|
|
|
|
|
> List<TreeNode> getNodes(objectCode).name(name).code(code).tag(tag).timeModifiedFrom(timeModifiedFrom).timeModifiedTo(timeModifiedTo).execute();
|
|
|
|
|
|
|
|
|
|
查询节点信息列表
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```java
|
|
|
|
|
// Import classes:
|
|
|
|
|
import com.idmesh.ApiClient;
|
|
|
|
|
import com.idmesh.ApiException;
|
|
|
|
|
import com.idmesh.Configuration;
|
|
|
|
|
import com.idmesh.models.*;
|
|
|
|
|
import com.idmesh.api.OrganizationApi;
|
|
|
|
|
|
|
|
|
|
public class Example {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
ApiClient defaultClient = new ApiClient("basePath", "ak", "sk");
|
|
|
|
|
|
|
|
|
|
OrganizationApi apiInstance = new OrganizationApi(defaultClient);
|
|
|
|
|
String objectCode = ""; // String | 组织编码
|
|
|
|
|
String name = "name_example"; // String | 名字,支持前缀搜索
|
|
|
|
|
String code = ""; // String | 编号
|
|
|
|
|
String tag = "tag_example"; // String | 标签
|
|
|
|
|
String timeModifiedFrom = ""; // String | 更新时间起点
|
|
|
|
|
String timeModifiedTo = ""; // String | 更新时间终点,默认至今
|
|
|
|
|
try {
|
|
|
|
|
List<TreeNode> result = apiInstance.getNodes(objectCode)
|
|
|
|
|
.name(name)
|
|
|
|
|
.code(code)
|
|
|
|
|
.tag(tag)
|
|
|
|
|
.timeModifiedFrom(timeModifiedFrom)
|
|
|
|
|
.timeModifiedTo(timeModifiedTo)
|
|
|
|
|
.execute();
|
|
|
|
|
System.out.println(result);
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
System.err.println("Exception when calling OrganizationApi#getNodes");
|
|
|
|
|
System.err.println("Status code: " + e.getCode());
|
|
|
|
|
System.err.println("Reason: " + e.getResponseBody());
|
|
|
|
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
| Name | Type | Description | Notes |
|
|
|
|
|
|------------- | ------------- | ------------- | -------------|
|
|
|
|
|
| **objectCode** | **String**| 组织编码 | |
|
|
|
|
|
| **name** | **String**| 名字,支持前缀搜索 | [optional] |
|
|
|
|
|
| **code** | **String**| 编号 | [optional] |
|
|
|
|
|
| **tag** | **String**| 标签 | [optional] |
|
|
|
|
|
| **timeModifiedFrom** | **String**| 更新时间起点 | [optional] |
|
|
|
|
|
| **timeModifiedTo** | **String**| 更新时间终点,默认至今 | [optional] |
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**List<TreeNode>**](TreeNode.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: Not defined
|
|
|
|
|
- **Accept**: application/json
|
|
|
|
|
|
|
|
|
|
### HTTP response details
|
|
|
|
|
| Status code | Description | Response headers |
|
|
|
|
|
|-------------|-------------|------------------|
|
|
|
|
|
| **200** | 成功 | - |
|
|
|
|
|
| **400** | 参数错误 | - |
|
|
|
|
|
|
|
|
|
|
<a id="getOrganization"></a>
|
|
|
|
|
# **getOrganization**
|
|
|
|
|
> List<GetOrganization200ResponseInner> getOrganization(id, code).execute();
|
|
|
|
|
|
|
|
|
|
获取组织关系基本信息
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```java
|
|
|
|
|
// Import classes:
|
|
|
|
|
import com.idmesh.ApiClient;
|
|
|
|
|
import com.idmesh.ApiException;
|
|
|
|
|
import com.idmesh.Configuration;
|
|
|
|
|
import com.idmesh.models.*;
|
|
|
|
|
import com.idmesh.api.OrganizationApi;
|
|
|
|
|
|
|
|
|
|
public class Example {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
ApiClient defaultClient = new ApiClient("basePath", "ak", "sk");
|
|
|
|
|
|
|
|
|
|
OrganizationApi apiInstance = new OrganizationApi(defaultClient);
|
|
|
|
|
String id = "id_example"; // String |
|
|
|
|
|
String code = "code_example"; // String |
|
|
|
|
|
try {
|
|
|
|
|
List<GetOrganization200ResponseInner> result = apiInstance.getOrganization(id, code)
|
|
|
|
|
.execute();
|
|
|
|
|
System.out.println(result);
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
System.err.println("Exception when calling OrganizationApi#getOrganization");
|
|
|
|
|
System.err.println("Status code: " + e.getCode());
|
|
|
|
|
System.err.println("Reason: " + e.getResponseBody());
|
|
|
|
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
| Name | Type | Description | Notes |
|
|
|
|
|
|------------- | ------------- | ------------- | -------------|
|
|
|
|
|
| **id** | **String**| | |
|
|
|
|
|
| **code** | **String**| | |
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**List<GetOrganization200ResponseInner>**](GetOrganization200ResponseInner.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: Not defined
|
|
|
|
|
- **Accept**: application/json
|
|
|
|
|
|
|
|
|
|
### HTTP response details
|
|
|
|
|
| Status code | Description | Response headers |
|
|
|
|
|
|-------------|-------------|------------------|
|
|
|
|
|
| **200** | 成功 | - |
|
|
|
|
|
| **400** | 参数错误 | - |
|
|
|
|
|
|
|
|
|
|
<a id="getOrganizations"></a>
|
|
|
|
|
# **getOrganizations**
|
|
|
|
|
> List<GetOrganizations200ResponseInner> getOrganizations().execute();
|
|
|
|
|
|
|
|
|
|
获取组织关系列表
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```java
|
|
|
|
|
// Import classes:
|
|
|
|
|
import com.idmesh.ApiClient;
|
|
|
|
|
import com.idmesh.ApiException;
|
|
|
|
|
import com.idmesh.Configuration;
|
|
|
|
|
import com.idmesh.models.*;
|
|
|
|
|
import com.idmesh.api.OrganizationApi;
|
|
|
|
|
|
|
|
|
|
public class Example {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
ApiClient defaultClient = new ApiClient("basePath", "ak", "sk");
|
|
|
|
|
|
|
|
|
|
OrganizationApi apiInstance = new OrganizationApi(defaultClient);
|
|
|
|
|
try {
|
|
|
|
|
List<GetOrganizations200ResponseInner> result = apiInstance.getOrganizations()
|
|
|
|
|
.execute();
|
|
|
|
|
System.out.println(result);
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
System.err.println("Exception when calling OrganizationApi#getOrganizations");
|
|
|
|
|
System.err.println("Status code: " + e.getCode());
|
|
|
|
|
System.err.println("Reason: " + e.getResponseBody());
|
|
|
|
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
This endpoint does not need any parameter.
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**List<GetOrganizations200ResponseInner>**](GetOrganizations200ResponseInner.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: Not defined
|
|
|
|
|
- **Accept**: application/json
|
|
|
|
|
|
|
|
|
|
### HTTP response details
|
|
|
|
|
| Status code | Description | Response headers |
|
|
|
|
|
|-------------|-------------|------------------|
|
|
|
|
|
| **200** | 成功 | - |
|
|
|
|
|
| **400** | 参数错误 | - |
|
|
|
|
|
|
|
|
|
|
<a id="updateMember"></a>
|
|
|
|
|
# **updateMember**
|
|
|
|
|
> EmptyObject13 updateMember(id, contentType).updateMemberRequest(updateMemberRequest).execute();
|
|
|
|
|
|
|
|
|
|
更新用户节点
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```java
|
|
|
|
|
// Import classes:
|
|
|
|
|
import com.idmesh.ApiClient;
|
|
|
|
|
import com.idmesh.ApiException;
|
|
|
|
|
import com.idmesh.Configuration;
|
|
|
|
|
import com.idmesh.models.*;
|
|
|
|
|
import com.idmesh.api.OrganizationApi;
|
|
|
|
|
|
|
|
|
|
public class Example {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
ApiClient defaultClient = new ApiClient("basePath", "ak", "sk");
|
|
|
|
|
|
|
|
|
|
OrganizationApi apiInstance = new OrganizationApi(defaultClient);
|
|
|
|
|
String id = "用户ID"; // String |
|
|
|
|
|
String contentType = "application/json"; // String |
|
|
|
|
|
UpdateMemberRequest updateMemberRequest = new UpdateMemberRequest(); // UpdateMemberRequest |
|
|
|
|
|
try {
|
|
|
|
|
EmptyObject13 result = apiInstance.updateMember(id, contentType)
|
|
|
|
|
.updateMemberRequest(updateMemberRequest)
|
|
|
|
|
.execute();
|
|
|
|
|
System.out.println(result);
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
System.err.println("Exception when calling OrganizationApi#updateMember");
|
|
|
|
|
System.err.println("Status code: " + e.getCode());
|
|
|
|
|
System.err.println("Reason: " + e.getResponseBody());
|
|
|
|
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
| Name | Type | Description | Notes |
|
|
|
|
|
|------------- | ------------- | ------------- | -------------|
|
|
|
|
|
| **id** | **String**| | |
|
|
|
|
|
| **contentType** | **String**| | |
|
|
|
|
|
| **updateMemberRequest** | [**UpdateMemberRequest**](UpdateMemberRequest.md)| | [optional] |
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**EmptyObject13**](EmptyObject13.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: application/json
|
|
|
|
|
- **Accept**: application/json
|
|
|
|
|
|
|
|
|
|
### HTTP response details
|
|
|
|
|
| Status code | Description | Response headers |
|
|
|
|
|
|-------------|-------------|------------------|
|
|
|
|
|
| **200** | 成功 | - |
|
|
|
|
|
| **400** | 参数错误 | - |
|
|
|
|
|
|
|
|
|
|
<a id="updateNode"></a>
|
|
|
|
|
# **updateNode**
|
|
|
|
|
> UpdateNode200Response updateNode(id, contentType).updateNodeRequest(updateNodeRequest).execute();
|
|
|
|
|
|
|
|
|
|
编辑节点
|
|
|
|
|
|
|
|
|
|
移动节点修改parent_id
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```java
|
|
|
|
|
// Import classes:
|
|
|
|
|
import com.idmesh.ApiClient;
|
|
|
|
|
import com.idmesh.ApiException;
|
|
|
|
|
import com.idmesh.Configuration;
|
|
|
|
|
import com.idmesh.models.*;
|
|
|
|
|
import com.idmesh.api.OrganizationApi;
|
|
|
|
|
|
|
|
|
|
public class Example {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
ApiClient defaultClient = new ApiClient("basePath", "ak", "sk");
|
|
|
|
|
|
|
|
|
|
OrganizationApi apiInstance = new OrganizationApi(defaultClient);
|
|
|
|
|
String id = "id_example"; // String | 更新树节点
|
|
|
|
|
String contentType = "application/json"; // String |
|
|
|
|
|
UpdateNodeRequest updateNodeRequest = new UpdateNodeRequest(); // UpdateNodeRequest |
|
|
|
|
|
try {
|
|
|
|
|
UpdateNode200Response result = apiInstance.updateNode(id, contentType)
|
|
|
|
|
.updateNodeRequest(updateNodeRequest)
|
|
|
|
|
.execute();
|
|
|
|
|
System.out.println(result);
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
System.err.println("Exception when calling OrganizationApi#updateNode");
|
|
|
|
|
System.err.println("Status code: " + e.getCode());
|
|
|
|
|
System.err.println("Reason: " + e.getResponseBody());
|
|
|
|
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
| Name | Type | Description | Notes |
|
|
|
|
|
|------------- | ------------- | ------------- | -------------|
|
|
|
|
|
| **id** | **String**| 更新树节点 | |
|
|
|
|
|
| **contentType** | **String**| | |
|
|
|
|
|
| **updateNodeRequest** | [**UpdateNodeRequest**](UpdateNodeRequest.md)| | [optional] |
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**UpdateNode200Response**](UpdateNode200Response.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: application/json
|
|
|
|
|
- **Accept**: application/json
|
|
|
|
|
|
|
|
|
|
### HTTP response details
|
|
|
|
|
| Status code | Description | Response headers |
|
|
|
|
|
|-------------|-------------|------------------|
|
|
|
|
|
| **200** | 成功 | - |
|
|
|
|
|
| **400** | 参数错误 | - |
|
|
|
|
|
|
|
|
|
|
<a id="updateOrganization"></a>
|
|
|
|
|
# **updateOrganization**
|
|
|
|
|
> DeleteOrganization200Response updateOrganization(id, contentType).updateOrganizationRequest(updateOrganizationRequest).execute();
|
|
|
|
|
|
|
|
|
|
修改组织关系基本信息
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```java
|
|
|
|
|
// Import classes:
|
|
|
|
|
import com.idmesh.ApiClient;
|
|
|
|
|
import com.idmesh.ApiException;
|
|
|
|
|
import com.idmesh.Configuration;
|
|
|
|
|
import com.idmesh.models.*;
|
|
|
|
|
import com.idmesh.api.OrganizationApi;
|
|
|
|
|
|
|
|
|
|
public class Example {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
ApiClient defaultClient = new ApiClient("basePath", "ak", "sk");
|
|
|
|
|
|
|
|
|
|
OrganizationApi apiInstance = new OrganizationApi(defaultClient);
|
|
|
|
|
String id = "id_example"; // String |
|
|
|
|
|
String contentType = "application/json"; // String |
|
|
|
|
|
UpdateOrganizationRequest updateOrganizationRequest = new UpdateOrganizationRequest(); // UpdateOrganizationRequest |
|
|
|
|
|
try {
|
|
|
|
|
DeleteOrganization200Response result = apiInstance.updateOrganization(id, contentType)
|
|
|
|
|
.updateOrganizationRequest(updateOrganizationRequest)
|
|
|
|
|
.execute();
|
|
|
|
|
System.out.println(result);
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
System.err.println("Exception when calling OrganizationApi#updateOrganization");
|
|
|
|
|
System.err.println("Status code: " + e.getCode());
|
|
|
|
|
System.err.println("Reason: " + e.getResponseBody());
|
|
|
|
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
| Name | Type | Description | Notes |
|
|
|
|
|
|------------- | ------------- | ------------- | -------------|
|
|
|
|
|
| **id** | **String**| | |
|
|
|
|
|
| **contentType** | **String**| | |
|
|
|
|
|
| **updateOrganizationRequest** | [**UpdateOrganizationRequest**](UpdateOrganizationRequest.md)| | [optional] |
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**DeleteOrganization200Response**](DeleteOrganization200Response.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: application/json
|
|
|
|
|
- **Accept**: application/json
|
|
|
|
|
|
|
|
|
|
### HTTP response details
|
|
|
|
|
| Status code | Description | Response headers |
|
|
|
|
|
|-------------|-------------|------------------|
|
|
|
|
|
| **200** | 成功 | - |
|
|
|
|
|
| **400** | 参数错误 | - |
|
|
|
|
|
|