All URIs are relative to https://openapi.alipay.com
Method | HTTP request | Description |
---|---|---|
query | GET /v3/alipay/iservice/ccm/role/page/query | 分页查询角色 |
AlipayIserviceCcmRolePageQueryResponseModel query(name, pageNum, pageSize, ccsInstanceId)
分页查询角色
分页查询角色
// Import classes:
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.Configuration;
import com.alipay.v3.util.*;
import com.alipay.v3.api.models.*;
import com.alipay.v3.api.AlipayIserviceCcmRolePageApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://openapi.alipay.com");
// 设置alipayConfig参数(全局设置一次)
AlipayConfig config = new AlipayConfig();
config.setAppId("app_id");
config.setPrivateKey("private_key");
config.setAlipayPublicKey("alipay_public_key");
config.setEncryptKey("encrypt_key");
defaultClient.setAlipayConfig(config);
AlipayIserviceCcmRolePageApi apiInstance = new AlipayIserviceCcmRolePageApi(defaultClient);
String name = "普通客服"; // String | 角色名称
Integer pageNum = 1; // Integer | 查询结果的页码,起始值为 1,默认值为 1
Integer pageSize = 10; // Integer | 分页查询时设置的每页记录数,最大值 100 行,默认为 10
String ccsInstanceId = "kaj_9DA1"; // String | 部门id(即租户实例ID、数据权限ID)
try {
AlipayIserviceCcmRolePageQueryResponseModel result = apiInstance.query(name, pageNum, pageSize, ccsInstanceId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayIserviceCcmRolePageApi#query");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | 角色名称 | [optional] |
pageNum | Integer | 查询结果的页码,起始值为 1,默认值为 1 | [optional] |
pageSize | Integer | 分页查询时设置的每页记录数,最大值 100 行,默认为 10 | [optional] |
ccsInstanceId | String | 部门id(即租户实例ID、数据权限ID) | [optional] |
AlipayIserviceCcmRolePageQueryResponseModel
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |