Skip to content

用户组织管理

版本说明

版本更新时间更新负责人更新内容
v1.0陈紫建
v1.12022-06-16彭业庆接口2,3,4新增返回字段:行政区划编码:areaCode;行政区划名称:areaName;统一信用代码:unifiedSocialCreditCode;
java
//引入接口平台依赖包
<dependency>
    <groupId>cn.com.digitalhainan</groupId>
    <artifactId>apione-http-client</artifactId>
    <version>hzt-1.0.11-RELEASE</version>
</dependency>

或者通过导入依赖包:apione-http-client-hzt-1.0.11-RELEASE.jar

根据用户id,或外部用户id,或手机号,或账号获取用户详情

接口名称根据用户id,或外部用户id,或手机号,或账号获取用户详情
接口描述根据用户id,或外部用户id,或手机号,或账号获取用户详情
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称pushUserInfoTest
生产API名称pushUserInfo
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数

Header字段说明类型必填备注
Uaa-App-Key统一认证应用的akString
Uaa-Tenant-Id租户idString默认:1
字段名称字段说明字段类型必填备注
userId用户idString必须存在一个参数,且只能有一个参数
externalId外部idString
account账号String
phone手机号String

请求示例

java
String contentJson = "{\"phone\":\"\"}";
String ak = "";  //开放平台发放的accessKey
String sk = "";	 //开放平台发放的secretKey
String api = "pushUserInfoTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();	
header.put("Uaa-App-Key", "xx");	// xx需要替换成统一认证平台的appKey
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
    .api(api)
    .headerParamsMap(header)	
    .region(region)
    .accessKey(ak)
    .secretKey(sk)
    .contentBody(contentBody)
    .requestUrl(requestUrl)
    .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数

返回参数字段说明类型必填备注
requestId请求IdString
success状态码Boolean状态码: true表示成功  false表示失败
code错误码String
message响应消息String
extend扩展响应内容Object
debugMessage异常信息String测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String测试环境才返回,方便接口调试错误排查
data返回内容Object返回成功data有内容
data字段字段说明类型必填备注
userId用户idString
account账户String
nickName显示名称String
phone手机号String
email邮箱String
certType证件类型String
certNo证件号码String
extendMap扩展属性Stringjson字符串,这里面可以取到海政通userId,取key=dingAccountId对应的值即可
enable是否启用Boolean
externalId外部用户idString
createTime创建时间Stringyyyy-MM-dd HH:mm:ss
updateTime更新时间Stringyyyy-MM-dd HH:mm:ss

成功返回示例

json
{
  "code": "0",
  "data": {
    "account": "abc",
    "certNo": "460102190009871234",
    "certType": "id_card",
    "email": "xx@qq.com",
    "enable": true,
    "extendMap": "{\\"sex\\": \\"M\\"}",
    "nickName": "abc",
    "phone": "13533612316",
    "userId": "12344",
    "enable": true,
    "externalId": "",
    "createTime": "yyyy-MM-dd HH:mm:ss",
    "updateTime": "yyyy-MM-dd HH:mm:ss"
  },
  "debugMessage": "",
  "success": true
}

失败返回示例

json
{
  "requestId": "15902051813530044359",
  "success": false,
  "code": "ERR_DATA_NOT_FOUND",
  "message": "数据不存在",
  "debugMessage": "",
  "debugTrace": "",
  "extend": {}
}

根据组织id,或外部组织id获取组织详情

接口名称根据组织id,或外部组织id获取组织详情
接口描述根据组织id,或外部组织id获取组织详情
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称pushOrgInfoTest
生产API名称pushOrgInfo
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数

Header字段说明类型必填备注
Uaa-App-Key统一认证应用的akString
Uaa-Tenant-Id租户idString默认:1
字段名称字段说明字段类型必填备注
orgId组织idString必须存在一个参数,且只能有一个参数
externalId外部组织idString

请求示例

java
String contentJson = "{\"orgId\":\"\"}";
String ak = "";  //开放平台发放的accessKey
String sk = "";	 //开放平台发放的secretKey
String api = "pushOrgInfoTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();	
header.put("Uaa-App-Key", "xx");	// xx需要替换成统一认证平台的appKey
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
    .api(api)
    .headerParamsMap(header)	
    .region(region)
    .accessKey(ak)
    .secretKey(sk)
    .contentBody(contentBody)
    .requestUrl(requestUrl)
    .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数

返回参数字段说明类型必填备注
requestId请求IdString
success状态码Boolean状态码: true表示成功  false表示失败
code错误码String
message响应消息String
extend扩展响应内容Object
debugMessage异常信息String测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String测试环境才返回,方便接口调试错误排查
data返回内容Object返回成功data有内容
data字段字段说明类型必填备注
orgId组织idString
orgName组织名称String
externalId组织外部idString
parentOrgId组织父级idString
sortNum排序号Int
leaf是否叶子节点Boolean
extendMap扩展属性Stringjson字符串
orgType组织类型String组织类型;GOV_HOLLOW_STRIP_NODE:条线虚节点;GOV_UNIT:单位;GOV_HOLLOW_DIVISION_NODE:行政区划虚节点;GOV_INTERNAL_INSTITUTION:内设机构;GOV_VIRTUAL:虚拟组织
enable是否启用Boolean
unitId单位idString
createTime创建时间Stringyyyy-MM-dd HH:mm:ss
updateTime更新时间Stringyyyy-MM-dd HH:mm:ss
areaCode行政区划编码String
areaName行政区划名称String
unifiedSocialCreditCode统一信用代码String

成功返回示例

json
{
  "code": "0",
  "data": {
    "enable": true,
    "extendMap": "{}",
    "externalId": "123456",
    "leaf": false,
    "orgId": "123456",
    "orgName": "海口市教育局",
    "parentOrgId": "1",
    "remark": "",
    "sortNum": 1,
    "orgType": "GOV_VIRTUAL",
    "unitId": "xxx",
    "createTime": "yyyy-MM-dd HH:mm:ss",
    "updateTime": "yyyy-MM-dd HH:mm:ss",
    "areaCode": "",
    "areaName": "",
    "unifiedSocialCreditCode": ""
  },
  "debugMessage": "",
  "success": true
}

失败返回示例

json
{
  "requestId": "15902051813530044359",
  "success": false,
  "code": "ERR_DATA_NOT_FOUND",
  "message": "数据不存在",
  "debugMessage": "",
  "debugTrace": "",
  "extend": {}
}

获取组织顶级节点

接口名称获取组织顶级节点
接口描述获取组织顶级节点
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称pushOrgRootInfoTest
生产API名称pushOrgRootInfo
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数

Header字段说明类型必填备注
Uaa-App-Key统一认证应用的akString
Uaa-Tenant-Id租户idString默认:1

请求示例

java
String contentJson = "{}";
String ak = "";  //开放平台发放的accessKey
String sk = "";	 //开放平台发放的secretKey
String api = "pushOrgRootInfoTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();	
header.put("Uaa-App-Key", "xx");	// xx需要替换成统一认证平台的appKey
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
    .api(api)
    .headerParamsMap(header)	
    .region(region)
    .accessKey(ak)
    .secretKey(sk)
    .contentBody(contentBody)
    .requestUrl(requestUrl)
    .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数

返回参数字段说明类型必填备注
requestId请求IdString
success状态码Boolean状态码: true表示成功  false表示失败
code错误码String
message响应消息String
extend扩展响应内容Object
debugMessage异常信息String测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String测试环境才返回,方便接口调试错误排查
data返回内容Object返回成功data有内容
data字段字段说明类型必填备注
orgs组织列表Array
orgId组织idString
orgName组织名称String
externalId组织外部idString
parentOrgId组织父级idString
sortNum排序号Int
leaf是否叶子节点Boolean
orgType组织类型String组织类型;GOV_HOLLOW_STRIP_NODE:条线虚节点;GOV_UNIT:单位;GOV_HOLLOW_DIVISION_NODE:行政区划虚节点;GOV_INTERNAL_INSTITUTION:内设机构;GOV_VIRTUAL:虚拟组织
enable是否启用Boolean
unitId单位idString
createTime创建时间Stringyyyy-MM-dd HH:mm:ss
updateTime更新时间Stringyyyy-MM-dd HH:mm:ss
areaCode行政区划编码String
areaName行政区划名称String
unifiedSocialCreditCode统一信用代码String

成功返回示例

json
{
  "code": "0",
  "data": {
    "orgs":[
      {
        "enable": true,
        "externalId": "xxxx",
        "leaf": false,
        "orgId": "1",
        "orgName": "xxxx",
        "parentOrgId": "0",
        "sortNum": 1,
        "orgType": "GOV_VIRTUAL",
        "unitId": "xxxx",
        "createTime": "yyyy-MM-dd HH:mm:ss",
        "updateTime": "yyyy-MM-dd HH:mm:ss",
        "areaCode": "",
        "areaName": "",
        "unifiedSocialCreditCode": ""
      }
    ]
  },
  "debugMessage": "",
  "success": true
}

失败返回示例

json
{
  "requestId": "15902051813530044359",
  "success": false,
  "code": "ERR_DATA_NOT_FOUND",
  "message": "数据不存在",
  "debugMessage": "",
  "debugTrace": "",
  "extend": {}
}

根据父级id,或外部父级id获取下级组织分页列表

接口名称根据父级id,或外部父级id获取下级组织分页列表
接口描述根据父级id,或外部父级id获取下级组织分页列表
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称pushOrgChildTest
生产API名称pushOrgChild
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数

Header字段说明类型必填备注
Uaa-App-Key统一认证应用的akString
Uaa-Tenant-Id租户idString默认:1
字段名称字段说明字段类型必填备注
pageNum第几页Int默认:1
pageSize一页返回多少条记录Int最大值100
parentId组织的父级idStringparent 和 parentExternalId 只能存在一个
parentExternalId组织的父级外部idString

请求示例

java
String contentJson = "{\"parentId\":\"\",\"pageNum\":1,\"pageSize\":10}";
String ak = "";  //开放平台发放的accessKey
String sk = "";	 //开放平台发放的secretKey
String api = "pushOrgChildTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();	
header.put("Uaa-App-Key", "xx");	// xx需要替换成统一认证平台的appKey
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
    .api(api)
    .headerParamsMap(header)	
    .region(region)
    .accessKey(ak)
    .secretKey(sk)
    .contentBody(contentBody)
    .requestUrl(requestUrl)
    .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数

返回参数字段说明类型必填备注
requestId请求IdString
success状态码Boolean状态码: true表示成功  false表示失败
code错误码String
message响应消息String
extend扩展响应内容Object
debugMessage异常信息String测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String测试环境才返回,方便接口调试错误排查
data返回内容Object返回成功data有内容
data字段字段说明类型必填备注
pageNum第几页Int
pageSize一页返回多少条记录Int
pages总页数Int
total总记录数Int
records记录数据List
records字段字段说明类型必填备注
orgId组织idString
orgName组织名称String
parentOrgId父级组织idString
externalId外部数据idString
leaf是否叶子节点Boolean
enable是否启用Boolean
sortNum序号Int
remark备注String
unitId单位idString
orgType组织类型String组织类型;GOV_HOLLOW_STRIP_NODE:条线虚节点;GOV_UNIT:单位;GOV_HOLLOW_DIVISION_NODE:行政区划虚节点;GOV_INTERNAL_INSTITUTION:内设机构;GOV_VIRTUAL:虚拟组织
createTime创建时间Stringyyyy-MM-dd HH:mm:ss
updateTime更新时间Stringyyyy-MM-dd HH:mm:ss
areaCode行政区划编码String
areaName行政区划名称String
unifiedSocialCreditCode统一信用代码String

成功返回示例

json
{
  "code": "0",
  "data": {
    "pageNum": 1,
    "pageSize": 10,
    "pages": 2,
    "records": [{
      "enable": true,
      "externalId": "12345",
      "leaf": false,
      "orgId": "12345",
      "orgName": "龙华区教育局",
      "parentOrgId": "xxx",
      "remark": "",
      "sortNum": 1,
      "orgType": "GOV_VIRTUAL",
      "unitId": "xxx",
      "createTime": "yyyy-MM-dd HH:mm:ss",
      "updateTime": "yyyy-MM-dd HH:mm:ss",
      "areaCode": "",
      "areaName": "",
      "unifiedSocialCreditCode": ""
    }],
    "total": 15
  },
  "debugMessage": "",
  "success": true
}

失败返回示例

json
{
  "requestId": "15902051813530044359",
  "success": false,
  "code": "ERR_DATA_NOT_FOUND",
  "message": "数据不存在",
  "debugMessage": "",
  "debugTrace": "",
  "extend": {}
}

根据组织id分页获取人员信息

接口名称根据组织id分页获取人员信息
接口描述根据组织id分页获取人员信息
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称pushOrgUsersTest
生产API名称pushOrgUsers
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数

Header字段说明类型必填备注
Uaa-App-Key统一认证应用的akString
Uaa-Tenant-Id租户idString默认:1
字段名称字段说明字段类型必填备注
pageNum第几页Int默认:1
pageSize一页返回多少条记录Int最大值100
orgId组织idStringorgId 和 orgExternalId 只能存在一个
orgExternalId组织外部idString
nickName名称String支持右模糊搜索

请求示例

java
String contentJson = "{\"orgId\":\"\",\"pageNum\":1,\"pageSize\":10}";
String ak = "";  //开放平台发放的accessKey
String sk = "";	 //开放平台发放的secretKey
String api = "pushOrgUsersTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Uaa-App-Key", "xx");	// xx需要替换成统一认证平台的appKey
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
    .api(api)
    .headerParamsMap(header)	
    .region(region)
    .accessKey(ak)
    .secretKey(sk)
    .contentBody(contentBody)
    .requestUrl(requestUrl)
    .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数

返回参数字段说明类型必填备注
requestId请求IdString
success状态码Boolean状态码: true表示成功  false表示失败
code错误码String
message响应消息String
extend扩展响应内容Object
debugMessage异常信息String测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String测试环境才返回,方便接口调试错误排查
data返回内容Object返回成功data有内容
data字段字段说明类型必填备注
pageNum第几页Int
pageSize一页返回多少条记录Int
pages总页数Int
total总记录数Int
records记录数据List
records字段字段说明类型必填备注
userId用户idString
account账号String
phone手机号String
email邮箱String
nickName可展示名称String
remark备注String
enable是否启用Boolean
jobType任职类型:1-主职、2-兼职Integer
posJob职务String
sortNum排序码Integer
mainJob是否主职Boolean
createTime创建时间Stringyyyy-MM-dd HH:mm:ss
updateTime更新时间Stringyyyy-MM-dd HH:mm:ss

成功返回示例

json
{
  "code": "0",
  "data": {
    "pageNum": 1,
    "pageSize": 10,
    "pages": 1,
    "records": [{
      "account": "testcity",
      "nickName": "测试市教育局",
      "phone": "13500999999",
      "userId": "xxx",
      "email": "",
      "enable": true,
      "remark": "xx",
      "jobType": 1, 
      "posJob": "", 
      "sortNum": 2, 
      "mainJob":false, 
      "createTime": "yyyy-MM-dd HH:mm:ss",
      "updateTime": "yyyy-MM-dd HH:mm:ss"
    }, {
      "account": "hanhaoyu",
      "nickName": "abc",
      "phone": "",
      "userId": "23333",
      "email": "",
      "enable": true,
      "remark": "xx",
      "jobType": 1, 
      "posJob": "", 
      "sortNum": 2, 
      "mainJob":false,
      "createTime": "yyyy-MM-dd HH:mm:ss",
      "updateTime": "yyyy-MM-dd HH:mm:ss"
    }],
    "total": 2
  },
  "debugMessage": "",
  "success": true
}

失败返回示例

json
{
  "requestId": "15902051813530044359",
  "success": false,
  "code": "ERR_DATA_NOT_FOUND",
  "message": "数据不存在",
  "debugMessage": "",
  "debugTrace": "",
  "extend": {}
}

获取组织的单位信息

接口名称获取组织的单位信息
接口描述获取组织的单位信息
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称orgUnitTest
生产API名称orgUnit
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数

Header字段说明类型必填备注
Uaa-App-Key统一认证应用的akString
Uaa-Tenant-Id租户idString默认:1
字段名称字段说明字段类型必填备注
orgId组织idString

请求示例

java
String contentJson = "{\"orgId\": \"\"}";
String ak = "";  //开放平台发放的accessKey
String sk = "";	 //开放平台发放的secretKey
String api = "orgUnitTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Uaa-App-Key", "xx");	// xx需要替换成统一认证平台的appKey
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
    .api(api)
    .headerParamsMap(header)	
    .region(region)
    .accessKey(ak)
    .secretKey(sk)
    .contentBody(contentBody)
    .requestUrl(requestUrl)
    .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数

返回参数字段说明类型必填备注
requestId请求IdString
success状态码Boolean状态码: true表示成功  false表示失败
code错误码String
message响应消息String
extend扩展响应内容Object
debugMessage异常信息String测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String测试环境才返回,方便接口调试错误排查
data返回内容Object返回成功data有内容
data字段字段说明类型必填备注
orgId组织idString
orgName组织名称String
orgType组织类型String
pathFullName组织全路径String
areaCode区划码String
areaName区划名称String
unifiedSocialCreditCode统一社会信用代码String

成功返回示例

json
{
    "success": true,
    "code": "0",
    "message": null,
    "data":{
                "orgId": "14713076945537105935780909906",
                "orgName": "海口市商务局",
                "orgType": null,
                "pathFullName": "",
                "areaCode": "",
                "unifiedSocialCreditCode": null,
                "areaName": null
          },
    "extend": null,
    "debugMessage": "",
    "debugTrace": null,
    "requestId": "3d540c355c03405f9a5e22052a573a12"
}

失败返回示例

json
{
  "requestId": "15902051813530044359",
  "success": false,
  "code": "ERR_DATA_NOT_FOUND",
  "message": "数据不存在",
  "debugMessage": "",
  "debugTrace": "",
  "extend": {}
}

根据角色查询用户详情列表

接口名称根据角色查询用户详情列表
接口描述根据角色查询用户详情列表
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称userInfoByRoleTest
生产API名称userInfoByRole
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数

Header字段说明类型必填备注
Uaa-App-Key统一认证应用的akString
Uaa-Tenant-Id租户idString默认:1
字段名称字段说明字段类型必填备注
roleId角色idString角色id和角色code必须存在一个
roleCode角色codeString
pageNum第几页Integer默认:1
pageSize一页返回多少条记录Integer最大值100

请求示例

java
String contentJson = "{\"roleId\": \"\", \"roleCode\": \"\", \"pageNum\": 1, \"pageSize\": 10}";
String ak = "";  //开放平台发放的accessKey
String sk = "";	 //开放平台发放的secretKey
String api = "userInfoByRoleTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Uaa-App-Key", "xx");	// xx需要替换成统一认证平台的appKey
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
    .api(api)
    .headerParamsMap(header)	
    .region(region)
    .accessKey(ak)
    .secretKey(sk)
    .contentBody(contentBody)
    .requestUrl(requestUrl)
    .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数

返回参数字段说明类型必填备注
requestId请求IdString
success状态码Boolean状态码: true表示成功  false表示失败
code错误码String
message响应消息String
extend扩展响应内容Object
debugMessage异常信息String测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String测试环境才返回,方便接口调试错误排查
data返回内容List返回成功data有内容
data字段字段说明类型必填备注
pageNum第几页Integer
pageSize一页返回多少条记录Integer
pages总页数Integer
total记录总数Integer
records记录数据List
record字段字段说明类型必填备注
userId用户idString
account用户名String
nickName姓名String
enable禁用/启用Boolean
remark备注String
phone手机号String
email邮箱String

成功返回示例

json
{
    "success": true,
    "code": "0",
    "message": null,
    "data":{
                "pageNum": 1,
                "pageSize": 20,
                "pages": 1,
                "total": 100,
                "record": [
                  {
                    "userId": "",
                    "account": "",
                    "nickName": "",
                    "enable": true,
                    "remark": "",
                    "phone": "",
                    "email": ""
                  }
                ]
          },
    "extend": null,
    "debugMessage": "",
    "debugTrace": null,
    "requestId": "3d540c355c03405f9a5e22052a573a12"
}

失败返回示例

json
{
  "requestId": "15902051813530044359",
  "success": false,
  "code": "ERR_DATA_NOT_FOUND",
  "message": "数据不存在",
  "debugMessage": "",
  "debugTrace": "",
  "extend": {}
}

组织信息搜索

接口名称组织信息搜索
接口描述组织信息搜索
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称orgSearchTest
生产API名称orgSearch
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数

Header字段说明类型必填备注
Uaa-App-Key统一认证应用的akString
Uaa-Tenant-Id租户idString默认:1
字段名称字段说明字段类型必填备注
keyword关键词搜索String
keywordType关键词类型String默认为:NAME - 搜索组织名称<br/>FULL_NAME_PATH-组织路径名称模糊搜索<br/>ORG_TYPE-组织类型<br/>UNIFIED_SOCIAL_CREDIT_CODE-组织信用代码
includeOrgIdScope包含的组织id集List<String>
excludeOrgIdScope不包含的组织id集List<String>
includeDirectOrgIdScope搜索当前组织List<String>
pageNum第几页int
pageSize一页返回多少条记录int最大值100

请求示例

java
String contentJson = "{\"keyword\": \"\", \"keywordType\": \"\", \"includeOrgIdScope\": [], \"excludeOrgIdScope\": [], \"includeDirectOrgIdScope\": []}";
String ak = "";  //开放平台发放的accessKey
String sk = "";	 //开放平台发放的secretKey
String api = "orgSearchTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Uaa-App-Key", "xx");	// xx需要替换成统一认证平台的appKey
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
    .api(api)
    .headerParamsMap(header)	
    .region(region)
    .accessKey(ak)
    .secretKey(sk)
    .contentBody(contentBody)
    .requestUrl(requestUrl)
    .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数

返回参数字段说明类型必填备注
requestId请求IdString
success状态码Boolean状态码: true表示成功  false表示失败
code错误码String
message响应消息String
extend扩展响应内容Object
debugMessage异常信息String测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String测试环境才返回,方便接口调试错误排查
data返回内容List返回成功data有内容
data字段字段说明类型必填备注
pageNum第几页Integer
pageSize一页返回多少条记录Integer
pages总页数Integer
total记录总数Integer
records记录数据List
records字段字段说明类型必填备注
orgId组织idString
orgName组织名称String
parentOrgId组织父级idString
fullNamePath当前机构完整名称路径String
parentIdPath父级id路径String
enable是否启用Boolean
orgType组织类型String组织类型;GOV_HOLLOW_STRIP_NODE:条线虚节点;GOV_UNIT:单位;GOV_HOLLOW_DIVISION_NODE:行政区划虚节点;GOV_INTERNAL_INSTITUTION:内设机构;GOV_VIRTUAL:虚拟组织

成功返回示例

json
{
  "success": true,
  "code": "0",
  "message": null,
  "data":{
    "pageNum": 1,
    "pageSize": 20,
    "pages": 1,
    "total": 100,
    "record": [
      {
        "orgId": "14713076945537105935780909906",
        "orgName": "海口市商务局",
        "parentOrgId": "14688437621151662099702937959",
        "fullNamePath": "业务中台/惠企政策组织/海口市商务局",
        "parentIdPath": "1,14688437621151662099702937959",
        "enable": true,
        "orgType": ""
      }
    ]
  } ,
  "extend": null,
  "debugMessage": "",
  "debugTrace": null,
  "requestId": "3d540c355c03405f9a5e22052a573a12"
}

失败返回示例

json
{
  "requestId": "15902051813530044359",
  "success": false,
  "code": "ERR_DATA_NOT_FOUND",
  "message": "数据不存在",
  "debugMessage": "",
  "debugTrace": "",
  "extend": {}
}

根据人员id列表获取人员基本信息列表

接口名称根据人员id列表获取人员基本信息列表
接口描述根据人员id列表获取人员基本信息列表
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称listUserInfoWithUserIdTest
生产API名称listUserInfoWithUserId
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数

Header字段说明类型必填备注
Uaa-App-Key统一认证应用的akString
Uaa-Tenant-Id租户idString默认:1
字段名称字段说明字段类型必填备注
userIds用户Id列表List<String>最大传入100个

请求示例

java
String contentJson = "{\"userIds\": []}";
String ak = "";  //开放平台发放的accessKey
String sk = "";	 //开放平台发放的secretKey
String api = "listUserInfoWithUserIdTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Uaa-App-Key", "xx");	// xx需要替换成统一认证平台的appKey
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
    .api(api)
    .headerParamsMap(header)	
    .region(region)
    .accessKey(ak)
    .secretKey(sk)
    .contentBody(contentBody)
    .requestUrl(requestUrl)
    .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数

返回参数字段说明类型必填备注
requestId请求IdString
success状态码Boolean状态码: true表示成功  false表示失败
code错误码String
message响应消息String
extend扩展响应内容Object
debugMessage异常信息String测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String测试环境才返回,方便接口调试错误排查
data返回内容Object返回成功data有内容
data字段字段说明类型必填备注
users用户基本信息集合List<Object>
users对象字段字段说明类型必填备注
users用户基本信息集合List<Object>
userId用户idString
account账号String
nickName名称String
channel用户渠道String
certType证件类型String
certNo证件号String
userType用户类型Integer
areaCode区划编码String
areaName区划名称String
superManager是否是超管Boolean
createTime创建时间Date
updateTime更新时间Date
enable是否启用Boolean

成功返回示例

json
{
  "success": true,
  "code": "0",
  "message": null,
  "data": {
    "users": [
      {
        "userId": "17218061175378657301015677196",
        "account": "",
        "nickName": "aaa",
        "phone": "",
        "email": "",
        "certType": "",
        "certNo": "",
        "channel": "sys",
        "externalId": null,
        "password": null,
        "enable": true,
        "createTime": "2023-11-07T08:25:43.000+0000",
        "updateTime": "2023-11-07T08:25:43.000+0000",
        "userType": null,
        "areaCode": null,
        "areaName": null,
        "superManager": null,
        "extendMap": null
      }
    ]
  },
  "extend": null,
  "debugMessage": "",
  "debugTrace": null,
  "requestId": "ff70f6118ccb4508bb22fb1c3a9e1701"
}

失败返回示例

json
{
  "requestId": "15902051813530044359",
  "success": false,
  "code": "ERR_DATA_NOT_FOUND",
  "message": "数据不存在",
  "debugMessage": "",
  "debugTrace": "",
  "extend": {}
}

根据用户id获取用户信息

接口名称根据用户id获取用户信息
接口描述根据用户id获取用户信息
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称getUserInfoByIdTest
生产API名称getUserInfoById
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数

Header字段说明类型必填备注
Uaa-App-Key统一认证应用的akString
Uaa-Tenant-Id租户idString默认:1
字段名称字段说明字段类型必填备注
userId用户idStrring

请求示例

java
String contentJson = "{\"userId\": \"\"}";
String ak = "";  //开放平台发放的accessKey
String sk = "";	 //开放平台发放的secretKey
String api = "getUserInfoByIdTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Uaa-App-Key", "xx");	// xx需要替换成统一认证平台的appKey
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
    .api(api)
    .headerParamsMap(header)	
    .region(region)
    .accessKey(ak)
    .secretKey(sk)
    .contentBody(contentBody)
    .requestUrl(requestUrl)
    .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数

返回参数字段说明类型必填备注
requestId请求IdString
success状态码Boolean状态码: true表示成功  false表示失败
code错误码String
message响应消息String
extend扩展响应内容Object
debugMessage异常信息String测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String测试环境才返回,方便接口调试错误排查
data返回内容Object返回成功data有内容
data字段字段说明类型必填备注
userId用户idString
account账号String
nickName昵称String
phone手机号String
email邮箱String
certType证件类型String
certNo证件号String
channel渠道String
externalId外部idString
password密码String
enable是否启用Boolean
createTime创建时间Date
updateTime更新时间Date
userType用户类型Integer
areaCode区划编码String
areaName区划名称String
superManager是否超级管理员Boolean
extendMap用户扩展属性Map

成功返回示例

json
{
  "code": "0",
  "data": {
    "userId":"",
    "account":"",
    "nickName":"",
    "phone":"",
    "email":"",
    "certType":"",
    "certNo":"",
    "channel":"sys",
    "externalId":"",
    "password":"",
    "enable": true,
    "createTime":"",
    "updateTime":"",
    "userType": 1,
    "areaCode":"",
    "areaName":"",
    "superManager": true,
    "extendMap":{
      "a":"1"
    }
  },
  "message": "",
  "debugMessage": "",
  "debugTrace": "",
  "success": true,
  "extend": null,
  "requestId": "123"
}

失败返回示例

json
{
  "requestId": "15902051813530044359",
  "success": false,
  "code": "ERR_DATA_NOT_FOUND",
  "message": "数据不存在",
  "debugMessage": "",
  "debugTrace": "",
  "extend": null
}

获取用户所在的组织信息

接口名称获取用户所在的组织信息
接口描述获取用户所在的组织信息
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称uaaGetUserOrgListByIdTest
生产API名称uaaGetUserOrgListById
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数

Header字段说明类型必填备注
Uaa-App-Key统一认证应用的akString
Uaa-Tenant-Id租户idString默认:1
字段名称字段说明字段类型必填备注
userId用户idStrring

请求示例

java
String contentJson = "{\"userId\": \"\"}";
String ak = "";  //开放平台发放的accessKey
String sk = "";	 //开放平台发放的secretKey
String api = "getUserInfoByIdTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Uaa-App-Key", "xx");	// xx需要替换成统一认证平台的appKey
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
    .api(api)
    .headerParamsMap(header)	
    .region(region)
    .accessKey(ak)
    .secretKey(sk)
    .contentBody(contentBody)
    .requestUrl(requestUrl)
    .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数

返回参数字段说明类型必填备注
requestId请求IdString
success状态码Boolean状态码: true表示成功  false表示失败
code错误码String
message响应消息String
extend扩展响应内容Object
debugMessage异常信息String测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String测试环境才返回,方便接口调试错误排查
data返回内容Object返回成功data有内容
data字段字段说明类型必填备注
orgs组织列表Array
orgId组织idString
orgName组织名称String
externalId组织外部idString
parentOrgId组织父级idString
sortNum排序号Int
leaf是否叶子节点Boolean
parentIdPath父级id路径<br/>String
orgType组织类型String组织类型;GOV_HOLLOW_STRIP_NODE:条线虚节点;GOV_UNIT:单位;GOV_HOLLOW_DIVISION_NODE:行政区划虚节点;GOV_INTERNAL_INSTITUTION:内设机构;GOV_VIRTUAL:虚拟组织
enable是否启用Boolean
unitId单位idString
createTime创建时间Stringyyyy-MM-dd HH:mm:ss
updateTime更新时间Stringyyyy-MM-dd HH:mm:ss
areaCode行政区划编码String
areaName行政区划名称String
unifiedSocialCreditCode统一信用代码String
mainJob是否主职Boolean

成功返回示例

json
{
  "code": "0",
  "data": {
    "orgs":[
      {
        "enable": true,
        "externalId": "xxxx",
        "leaf": false,
        "orgId": "1",
        "orgName": "xxxx",
        "parentOrgId": "0",
        "sortNum": 1,
        "orgType": "GOV_VIRTUAL",
        "unitId": "xxxx",
        "createTime": "yyyy-MM-dd HH:mm:ss",
        "updateTime": "yyyy-MM-dd HH:mm:ss",
        "areaCode": "",
        "areaName": "",
        "unifiedSocialCreditCode": "",
        "mainJob":true
      }
    ]
  },
  "debugMessage": "",
  "success": true
}

失败返回示例

json
{
  "requestId": "15902051813530044359",
  "success": false,
  "code": "ERR_DATA_NOT_FOUND",
  "message": "数据不存在",
  "debugMessage": "",
  "debugTrace": "",
  "extend": {}
}

通过组织id列表获取组织

接口名称通过组织id列表获取组织
接口描述通过组织id列表获取组织
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称uaaGetOrgListByIdsTest
生产API名称uaaGetOrgListByIds
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数

Header字段说明类型必填备注
Uaa-App-Key统一认证应用的akString
Uaa-Tenant-Id租户idString默认:1
Body字段说明类型必填备注
orgIds组织id列表List<String>最多传入100个

请求示例

json
String content = "{\"orgIds\": []}";
String ak = "";
String sk = "";
String api = "uaaGetOrgListByIdsTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Authorization", "Bearer xxxx");
header.put("Uaa-App-Key", "xx");	
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
        .api(api)
        .headerParamsMap(header)
        .region(region)
        .accessKey(ak)
        .secretKey(sk)
        .contentBody(contentBody)
        .requestUrl(requestUrl)
        .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数

返回参数字段说明类型必填备注
requestId请求IdString
success状态码Boolean状态码: true表示成功  false表示失败
code错误码String
message响应消息String
extend扩展响应内容Object
debugMessage异常信息String测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String测试环境才返回,方便接口调试错误排查
data返回内容List<Object>
data字段字段说明类型必填备注
orgId组织idString
orgName组织名称String
parentOrgId父级组织idString
externalId外部数据idString
leaf是否叶子节点Boolean
enable是否启用Boolean
sortNum序号Int
remark备注String
unitId单位idString
orgType组织类型String组织类型;GOV_HOLLOW_STRIP_NODE:条线虚节点;GOV_UNIT:单位;GOV_HOLLOW_DIVISION_NODE:行政区划虚节点;GOV_INTERNAL_INSTITUTION:内设机构;GOV_VIRTUAL:虚拟组织
createTime创建时间Stringyyyy-MM-dd HH:mm:ss
updateTime更新时间Stringyyyy-MM-dd HH:mm:ss
areaCode行政区划编码String
areaName行政区划名称String
unifiedSocialCreditCode统一信用代码String

成功返回示例

json
{
  "code": "0",
  "data": [{
    "enable": true,
    "externalId": "12345",
    "leaf": false,
    "orgId": "12345",
    "orgName": "龙华区教育局",
    "parentOrgId": "xxx",
    "remark": "",
    "sortNum": 1,
    "orgType": "GOV_VIRTUAL",
    "unitId": "xxx",
    "createTime": "yyyy-MM-dd HH:mm:ss",
    "updateTime": "yyyy-MM-dd HH:mm:ss",
    "areaCode": "",
    "areaName": "",
    "unifiedSocialCreditCode": ""
  }]
},
"debugMessage": "",
"success": true
}

失败返回示例

json
{
  "requestId": "15902051813530044359",
  "success": false,
  "code": "ERR_DATA_NOT_FOUND",
  "message": "数据不存在",
  "debugMessage": "",
  "debugTrace": "",
  "extend": {}
}

根据用户扩展属性查询用户信息

接口名称根据用户扩展属性查询用户信息
接口描述根据用户扩展属性查询用户信息
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称searchByExtendPropTest
生产API名称searchByExtendProp
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数

Header字段说明类型必填备注
Uaa-App-Key统一认证应用的akString
Uaa-Tenant-Id租户idString默认:1
字段名称字段说明字段类型必填备注
pageNum当前页Integer
pageSize记录数Integer
extendKey扩展属性keyString
extendValue扩展属性valueString

请求示例

java
String contentJson = "{\"pageNum\": 1, \"pageSize\": 10, \"extendKey\":\"accountId\", \"extendValue\":\"v\"}";
String ak = "";  //开放平台发放的accessKey
String sk = "";	 //开放平台发放的secretKey
String api = "searchUserByExtendPropTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Uaa-App-Key", "xx");	// xx需要替换成统一认证平台的appKey
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
    .api(api)
    .headerParamsMap(header)	
    .region(region)
    .accessKey(ak)
    .secretKey(sk)
    .contentBody(contentBody)
    .requestUrl(requestUrl)
    .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数

返回参数字段说明类型必填备注
requestId请求IdString
success状态码Boolean状态码: true表示成功  false表示失败
code错误码String
message响应消息String
extend扩展响应内容Object
debugMessage异常信息String测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String测试环境才返回,方便接口调试错误排查
data返回内容Object返回成功data有内容
data字段字段说明类型必填备注
pageNum当前页Integer
pageSize记录数Integer
pages分页数Integer
total记录总数Integer
records记录List<Object>
records字段说明类型必填备注
id主键标识String
userId用户idString
account账号String
nickName昵称String
phone手机号String
belongs职务信息List<Object>
belongs字段说明类型必填备注
orgId机构idString
orgName机构名称String
posJob职位String
fullNamePath机构全路径名String
jobType职务类型String
mainJob是否主职Boolean

成功返回示例

json
{
  "code": "0",
  "data": {
    "latestId": "",
    "result": [
      {
        "id":"",
        "userId":"",
        "account":"",
        "nickName":"",
        "phone":"",
        "belongs":[
          {
            "orgId":"",
            "orgName":"",
            "posJob":"",
            "fullNamePath":""
            "jobType": "",
            "mainJob": true
          }
        ]
      }
    ]
  },
  "message": "",
  "debugMessage": "",
  "debugTrace": "",
  "success": true,
  "extend": null,
  "requestId": "123"
}

失败返回示例

json
{
  "requestId": "15902051813530044359",
  "success": false,
  "code": "ERR_DATA_NOT_FOUND",
  "message": "数据不存在",
  "debugMessage": "",
  "debugTrace": "",
  "extend": null
}