# 泰山接口文档
# 1.总体论述
# 1.1请求方式
接口支持http请求,目前仅支持get以及post两种方式的请求
以当前主流的axios为例,说明当前的接口支持类型情况
TYPE | Content-Type | SupportOrNot |
---|---|---|
GET | 支持 | |
post | application/x-www-form-urlencoded | 支持 |
post | application/json | 不支持 |
post | multipart/form-data | 支持 |
请求的参数中必须有
appCode | 应用的编码 |
---|---|
appSecret | 应用的秘钥 |
注意:应用编码及秘钥在应用模块创建应用之后,在认证模块中可以获取
# 1.2一般返回情况
返回值的结构一般为:
{
"code": 200,
"data": {
"result": 这里就是需要的结果,
"ownCode": 200,
"innerMessage": "",
"message": ""
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
Field | Type | Description |
---|---|---|
code | int | 枚举服务器响应代码,成功为200 |
data | object | 接口返回的业务数据 |
└─ownCode | int | 业务返回编码,成功为200 |
└─innerMessage | String | 业务返回内部消息 |
└─message | String | 业务返回消息 |
└─result | object | 业务返回的查询结果数据 |
message | String | 枚举所有的服务器响应成功或者失败的详细信息 |
success | boolean | 枚举所有的服务器响应状态 |
# 1.3常见问题
问题 | 分析 |
---|---|
appCode和appSecret不匹配,请联系系统管理员 | 没有使用正确的appcode和appSecret |
postman请求没有问题,但是在系统中请求出现不到 | 查看请求体的Content-Type是否存在问题 |
# 2.登录认证相关接口
# 2.1、非单点登录
返回数据缺失(不要用ts的账号测试)
URL: http://[ip]:7080/taishanApi/tsSecApi/login
Description: 非单点登录的方法
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
userName | string | 登录名 | true | - |
passWord | string | 密码 | true | - |
loginMode | string | 登录方式(1为账号密码,2为证书登录) | true | - |
appCode | string | 认证的应用code | true | - |
appSecret | string | 认证的秘钥 | true | - |
Request-example:
{
"userName":ts,
"passWord":123,
"loginMode":1,
"appCode":tsda642866d93041d9908a695e827d2c5c,
"appSecret":912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769
}
2
3
4
5
6
7
Response-fields:
Field | Type | Description | 长度 |
---|---|---|---|
tsTokenId | string | 用户本次登录的令牌,在获取角色信息以及菜单信息使用使用 | |
userId | string | 用户的id | 32 |
innerCode | string | 用户内部code | 32 |
userEname | string | 用户的英文名称,即登录账号名称 | 50 |
userCName | string | 用户的中文名称 | 50 |
orgId | string | 用户所属组织机构id | 32 |
orgCode | string | 用户所属组织机构code | 50 |
orgName | string | 用户所属组织机构name | 200 |
orgShortCname | string | 机构简称 | |
depId | string | 用户所属部门id | 32 |
deptCode | string | 用户所属部门code | 50 |
deptName | string | 用户所属部门name | 200 |
deptShortCname | string | 部门简称 | |
deptTypes | string | 当前用户所在部门的部门类型(可能存在多个,逗号分割) | 200 |
rankCode | string | 职级编码 | |
rankName | string | 职级名称 | |
dutyCode | string | 职务编码 | |
dutyName | string | 职务名称 | |
userTypeCode | string | 用户类型编码 | |
userTypeName | string | 用户类型名称 | |
onlineRoleId | string | 角色id | |
post | string | ||
initPsdFlag | string | 是否初始密码 | |
passwordDays | string | 密码更新修改时间间隔 | |
passwordUpdateDate | string | 密码修改 | |
ip | string | ||
innerType | string | ||
roleIds | array |
Response-example:
{
"code": 200,
"data": {
"result": {
"deptName": "同步测试v2",
"rankCode": null,
"tsTokenId": "5820ABB1E346F23E024EADD7FDC8DF80",
"dutyCode": "902",
"orgId": "7f6e0c8d1749eb22ac1f679c0be93263",
"onlineRoleId": null,
"userTypeCode": "3",
"post": null,
"initPsdFlag": "1",
"orgCode": "021200000000",
"passwordDays": 5,
"rankName": null,
"passwordUpdateDate": "2023-05-23",
"userEmail": "",
"orgShortCname": "同步测试v2",
"deptTypes": null,
"innerCode": "c989ba548d3444d79c6d6885af3dc99b",
"orgName": "同步测试v2",
"userCName": "tbcs1",
"ip": null,
"deptId": "7f6e0c8d1749eb22ac1f679c0be93263",
"userId": "97b30754fa1d1bb055821cb3d42e9883",
"userEname": "tbcsv2_tbcs1",
"dutyName": "纪检监察机关副职",
"roleIds": [],
"userTypeName": "聘用人员",
"innerType": "YW",
"depId": "7f6e0c8d1749eb22ac1f679c0be93263",
"deptCode": "021200000000",
"deptShortCname": "同步测试v2"
},
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 2.2、获取角色基本信息
URL: http://[ip]:7080/taishanApi/tsSecApi/queryRoleInfoByTokenId
Description: 获取角色基本信息
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
tsTokenId | string | tokenid | true | - |
appCode | string | 认证的应用code | true | - |
appSecret | string | 认证的秘钥 | true | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"tsTokenId": "A2F6A8451B7C2E83F63F3FBC846C2B67"
}
2
3
4
5
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
dataRange | String | 数据权限 | - |
roleId | String | 角色id | - |
absoluteUrl | String | 单角色或者对应应用角色的绝对路径 | - |
roleName | String | 角色名称 | - |
relativeUrl | String | 单角色或者对应应用角色的相对路径 | - |
roleType | String | 角色类型 | - |
isDefault | String | 是否默认 | - |
syType | String | 三员类型 | - |
multipleAppUrl | String | 跳转地址 | - |
Response-example:
{
"code": 200,
"data": {
"result": {
"isDefault": "0",
"dataRange": {
"TSPT_SJQX": "01,02,03"
},
"roleId": "8d667147625d3e5d5cd7c4f3a5c805b7",
"absoluteUrl": "http://127.0.0.1:80/",
"roleCode": "sccsyy",
"errorMessage": null,
"roleName": "四川测试应用",
"errorCode": 0,
"relativeUrl": "/",
"roleType": "YW",
"syType": null,
"multipleAppUrl": null
},
"ownCode": 200,
"innerMessage": "",
"message": "成功",
"resultList": [
{
"isDefault": "0",
"dataRange": {
"TSPT_SJQX": "01,02,03"
},
"roleId": "8d667147625d3e5d5cd7c4f3a5c805b7",
"absoluteUrl": "http://127.0.0.1:80/",
"roleCode": "sccsyy",
"errorMessage": null,
"roleName": "四川测试应用",
"errorCode": 0,
"relativeUrl": "/",
"roleType": "YW",
"syType": null,
"multipleAppUrl": null
}
]
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 2.3、获取用户菜单(2023年7月21日)
URL: http://[ip]:7080/taishanApi/tsSecApi/getAppMenuInfoByRoleId
Description: 根据角色id获取当前用户菜单,菜单分为分组菜单和普通的菜单,普通菜单和之前的用法没有分别,分组菜单是根据分组的类型,从新将菜单进行了重组,具体的使用方式可以根据返回的结果自己设计
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
tsTokenId | string | tsTokenId | true | - |
appCode | string | 认证的应用code | true | - |
appSecret | string | 认证的秘钥 | true | - |
roleId | string | 角色id | true | - |
Request-example:
{
"tsTokenId":A2F6A8451B7C2E83F63F3FBC846C2B67
"appCode":tsda642866d93041d9908a695e827d2c5c
"appSecret":912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769
"roleId": 60ab0885983cbb800df2c95b1527c28a
}
2
3
4
5
6
Response-fields:
重要字段解释
Field | Type | Description | Since |
---|---|---|---|
groupId | string | 菜单所属分组id | - |
id | string | 菜单id | - |
isDefault | string | 是否默认页面(0 否 1是) | |
isShow | string | 是否显示菜单(0 否 1是) | |
menuEname | string | 菜单英文名称 | |
menuShowCname | string | 菜单显示名称 | |
menuType | string | 菜单的类型(1 菜单 2按钮) | |
menuUrl | string | 菜单的路径 | |
menuIcon | string | 菜单的图标 | |
parentId | string | 菜单父id |
Response-example:
{
"code": 200,
"data": {
"ownCode": 200,
"menuList": [
{
"isDefault": "0",
"menuShowCname": "组织人员1",
"menuUrl": "",
"menuIcon": "",
"children": [
{
"isDefault": "0",
"menuShowCname": "组织管理",
"menuUrl": "/orgPerson/orgManage",
"menuIcon": "",
"groupId": "",
"menuType": "1",
"id": "ed533b833d0ae6e11ba2d6d9068351c7",
"parentId": "5a8f6bf49e3e897103854909723ea8d8",
"menuEname": "ZZGL",
"isShow": "1"
},
{
"isDefault": "0",
"menuShowCname": "人员账号",
"menuUrl": "/orgPerson/personAccount",
"menuIcon": "",
"groupId": "",
"menuType": "1",
"id": "f7f54172cb2ed704ea6153a1e55d5dbb",
"parentId": "5a8f6bf49e3e897103854909723ea8d8",
"menuEname": "RYZH",
"isShow": "1"
}
],
"groupId": "fe820564870afe481c59e21f64dcf81c",
"menuType": "1",
"id": "5a8f6bf49e3e897103854909723ea8d8",
"parentId": "12a9f896c3411f35e60e148bcea4a4c8",
"menuEname": "ZZRY",
"isShow": "1"
},
],
"innerMessage": "",
"groupList": [
{
"code": "SJGLPT",
"data": [
{
"isDefault": "0",
"menuShowCname": "统计分析",
"menuUrl": "",
"menuIcon": "",
"children": [
{
"isDefault": "0",
"menuShowCname": "平台管理类报表",
"menuUrl": "/statistics/platformManage",
"menuIcon": "",
"groupId": "",
"menuType": "1",
"id": "b7a1556f866fa41d4ae0930c97752167",
"parentId": "aef8ada1fcf1fd64dbc7cb717fee4dc1",
"menuEname": "PTGLLBB",
"isShow": "1"
}
],
"groupId": "2365dccfbb6426ae9a0e1805bb376523",
"menuType": "1",
"id": "aef8ada1fcf1fd64dbc7cb717fee4dc1",
"parentId": "12a9f896c3411f35e60e148bcea4a4c8",
"menuEname": "THFX",
"isShow": "1"
},
],
"name": "审计管理平台",
"id": "2365dccfbb6426ae9a0e1805bb376523",
"isGroup": true
}],
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# 2.4、获取用户菜单(该接口于2023年7月21日起废弃,不再维护)
URL: http://[ip]:7080/taishanApi/tsSecApi/getAppMenuInfo
Description: 根据用户id获取当前用户菜单,菜单分为分组菜单和普通的菜单,普通菜单和之前的用法没有分别,分组菜单是根据分组的类型,从新将菜单进行了重组,具体的使用方式可以根据返回的结果自己设计
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
tsTokenId | string | tsTokenId | true | - |
appCode | string | 认证的应用code | true | - |
appSecret | string | 认证的秘钥 | true | - |
Request-example:
{
"tsTokenId":A2F6A8451B7C2E83F63F3FBC846C2B67
"appCode":tsda642866d93041d9908a695e827d2c5c
"appSecret":912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769
}
2
3
4
5
Response-fields:
重要字段解释
Field | Type | Description | Since |
---|---|---|---|
groupId | string | 菜单所属分组id | - |
id | string | 菜单id | - |
isDefault | string | 是否默认页面(0 否 1是) | |
isShow | string | 是否显示菜单(0 否 1是) | |
menuEname | string | 菜单英文名称 | |
menuShowCname | string | 菜单显示名称 | |
menuType | string | 菜单的类型(1 菜单 2按钮) | |
menuUrl | string | 菜单的路径 | |
menuIcon | string | 菜单的图标 | |
parentId | string | 菜单父id |
Response-example:
{
"code": 200,
"data": {
"ownCode": 200,
"menuList": [
{
"isDefault": "0",
"menuShowCname": "组织人员1",
"menuUrl": "",
"menuIcon": "",
"children": [
{
"isDefault": "0",
"menuShowCname": "组织管理",
"menuUrl": "/orgPerson/orgManage",
"menuIcon": "",
"groupId": "",
"menuType": "1",
"id": "ed533b833d0ae6e11ba2d6d9068351c7",
"parentId": "5a8f6bf49e3e897103854909723ea8d8",
"menuEname": "ZZGL",
"isShow": "1"
},
{
"isDefault": "0",
"menuShowCname": "人员账号",
"menuUrl": "/orgPerson/personAccount",
"menuIcon": "",
"groupId": "",
"menuType": "1",
"id": "f7f54172cb2ed704ea6153a1e55d5dbb",
"parentId": "5a8f6bf49e3e897103854909723ea8d8",
"menuEname": "RYZH",
"isShow": "1"
}
],
"groupId": "fe820564870afe481c59e21f64dcf81c",
"menuType": "1",
"id": "5a8f6bf49e3e897103854909723ea8d8",
"parentId": "12a9f896c3411f35e60e148bcea4a4c8",
"menuEname": "ZZRY",
"isShow": "1"
},
],
"innerMessage": "",
"groupList": [
{
"code": "SJGLPT",
"data": [
{
"isDefault": "0",
"menuShowCname": "统计分析",
"menuUrl": "",
"menuIcon": "",
"children": [
{
"isDefault": "0",
"menuShowCname": "平台管理类报表",
"menuUrl": "/statistics/platformManage",
"menuIcon": "",
"groupId": "",
"menuType": "1",
"id": "b7a1556f866fa41d4ae0930c97752167",
"parentId": "aef8ada1fcf1fd64dbc7cb717fee4dc1",
"menuEname": "PTGLLBB",
"isShow": "1"
}
],
"groupId": "2365dccfbb6426ae9a0e1805bb376523",
"menuType": "1",
"id": "aef8ada1fcf1fd64dbc7cb717fee4dc1",
"parentId": "12a9f896c3411f35e60e148bcea4a4c8",
"menuEname": "THFX",
"isShow": "1"
},
],
"name": "审计管理平台",
"id": "2365dccfbb6426ae9a0e1805bb376523",
"isGroup": true
}],
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# 2.5、修改密码的方法
URL: http://[ip]:7080/taishanApi/tsSecApi/updateUserPwd
Description: 修改密码的方法
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 认证的应用code | true | - |
appSecret | string | 认证的秘钥 | true | - |
userId | string | 用户id | true | - |
oldPwd | string | 旧密码 | true | - |
newPwd | string | 新密码 | true | - |
Request-example:
{
"appCode":tsda642866d93041d9908a695e827d2c5c
"appSecret":912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769
"userId": 45ddcd09b972c819fd51994b91404b67
"oldPwd": 123
"newPwd": 321
}
2
3
4
5
6
7
Response-example:
{
"code": 200,
"data": {
"result": null,
"ownCode": 200,
"innerMessage": "",
"message": "修改成功!"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
# 2.6、获取用户权限范围内的应用和角色
URL: http://[ip]:7080/taishanApi/tsSecApi/getUserAllAppAndRole
Description: 获取用户权限范围内的应用和角色
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
userId | string | 用户id | true | - |
appCode | string | 认证的应用code | true | - |
appSecret | string | 认证的秘钥 | true | - |
Request-example:
{
"userId":A2F6A8451B7C2E83F63F3FBC846C2B67
"appCode":tsda642866d93041d9908a695e827d2c5c
"appSecret":912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769
}
2
3
4
5
Response-fields:
重要字段解释
Field | Type | Description | Since |
---|---|---|---|
appCode | string | 应用编码 | - |
appName | string | 应用名称 | - |
appShortName | string | 应用简称 | - |
roleInfos | string | 角色信息 | - |
└─systemId | string | 系统id | - |
└─dataRange | string | 数据权限 | - |
└─roleId | string | 角色id | - |
└─roleCode | string | 角色编码 | - |
└─roleName | string | 角色名称 | - |
└─roleType | string | 角色类型 | - |
└─isDefault | string | 是否默认角色:0-否,1-是 | - |
└─absoluteUrl | string | 跳转路径-绝对路径 | - |
└─relativeUrl | string | 跳转路径-相对路径 | - |
Response-example:
{
"code": 200,
"data": {
"result": [
{
"roleInfos": [
{
"systemId": "8408a9510d1ee3ca2e399ea119707ad6",
"dataRange": {
"TSPT_SJQX": "01"
},
"roleId": "52e07a0e881ee60dc3d6a597f009fc2d",
"absoluteUrl": "http://127.0.0.1:9998/portal-xj/portalIndex",
"errorMessage": null,
"errorCode": 0,
"relativeUrl": "/portal-xj/portalIndex",
"roleType": "YW",
"syType": null,
"multipleAppUrl": null,
"isDefault": "0",
"roleCode": "zycsjs",
"roleName": "zy测试角色"
}
],
"appName": "中央测试应用",
"appCode": "tsf2a12007d29c456ab6842874f67e9eea",
"appShortName": "zycsyy"
},
{
"roleInfos": [
{
"systemId": "12a9f896c3411f35e60e148bcea4a4c8",
"dataRange": {
"03": "03"
},
"roleId": "8f178f45364f72b3247a1d4d9b31b848",
"absoluteUrl": "http://127.0.0.1:9999/",
"errorMessage": null,
"errorCode": 0,
"relativeUrl": "/",
"roleType": "PTSY",
"syType": "secauditor",
"multipleAppUrl": null,
"isDefault": "0",
"roleCode": "secauditor",
"roleName": "审计员"
},
{
"systemId": "12a9f896c3411f35e60e148bcea4a4c8",
"dataRange": {
"01": "01"
},
"roleId": "739df2f21287b7bf96e8e48b24d95939",
"absoluteUrl": "http://127.0.0.1:9999/transition",
"errorMessage": null,
"errorCode": 0,
"relativeUrl": "/transition",
"roleType": "RT",
"syType": null,
"multipleAppUrl": null,
"isDefault": "0",
"roleCode": "tswd",
"roleName": "泰山文档"
}
],
"appName": "泰山一体化认证管理平台",
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appShortName": "tspt"
}
],
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# 2.7、账号密码认证登录接口
URL: http://[ip]:7080/taishanApi/tsSecApi/checkUserLoginEnc
Description: 验证账号密码登录。接收参数、返回参数统一为json格式。入参部分加密,返回结果全部加密。
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用密钥 | true | - |
userName | string | 登录账号(需加密) | true | - |
passWord | string | 账号密码(需加密) | true | - |
Request-example:
传参形式:
加密前:
{
"appCode": "ts8a12a42969714488bf371cf961359091",
"appSecret": "07798217675d551e719d3d3af4cd5af3997c3d4c19dbd14efe39c3795fe763a54a3bd8c22a76a2fa",
"userEname": "zhangsan",
"password": "123"
}
加密后:
{
"appCode": "ts8a12a42969714488bf371cf961359091",
"appSecret": "07798217675d551e719d3d3af4cd5af3997c3d4c19dbd14efe39c3795fe763a54a3bd8c22a76a2fa",
"userEname": "pkjhZdMOFGfXuIOWW1nMxQ%3D%3D",
"password": "nRTbogJSa5E%3D"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
Response-fields:
重要字段解释
Field | Type | Description | Since |
---|---|---|---|
userEname | string | 登录账号 | - |
userCname | string | 用户名称 | - |
innerCode | string | 账号唯一标识 | - |
refreshToken | string | 认证token | - |
Response-example:
返回结果加密处理
加密前:
{
"success": "true",
"data":{
"userEname": "zhangsan",
"userCname": "张三",
"innerCode": "9a4b3d08e2644e5bb3b404cca0bf2934",
"refreshToken":"ref_123"
}
}
加密后:
4yKaZhv0CeRWncoWC0b5BFMdqarGYGh5C4nmz64%2Bo4nEob4Z91eHKl7%2Fd%2F1UPBLUAr%2BXtQNaYkgWoJrJOGhRGw8qRGeFqGiakHACTtnSOdmcJk79xxrm1nBwlZSXBmnQKr6H6n4gvAfKCEtJSHU3DjiAEwwODWH%2B1NDONK4zutc%3D
2
3
4
5
6
7
8
9
10
11
12
# 2.8、证书认证登录接口
URL: http://[ip]:7080/taishanApi/tsSecApi/checkUserLoginByUkeyEnc
Description: 根据身份票据和系统标识验证。接收参数、返回参数统一为json格式。入参部分加密,返回结果加密处理。
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用密钥 | true | - |
wstParams | string | 卫士通参数(需加密) | true | - |
wstParams在加密前是json格式的字符串,其中challenge是从卫士通获取到的随机数,identityTicket是和key交互之后获取到的票据
{"challenge":"2222223","identityTicket":"dfdfdf"}
Request-example:
{
"appCode": "ts8a12a42969714488bf371cf961359091",
"appSecret": "07798217675d551e719d3d3af4cd5af3997c3d4c19dbd14efe39c3795fe763a54a3bd8c22a76a2fa",
"wstParams": "FjnCD8klhR%2F24Mm8gcPGp1x8jpuJl12tjw4R6CLngQpLpPaH%2BWZCOCEEOsK5OCC4RUL9L8hHtKo%3D"
}
2
3
4
5
Response-fields:
重要字段解释
Field | Type | Description | Since |
---|---|---|---|
userEname | string | 登录账号 | - |
userCname | string | 用户名称 | - |
innerCode | string | 账号唯一标识 | - |
refreshToken | string | 认证token | - |
Response-example:
返回结果加密处理
加密前:
{
"success": "true",
"data":{
"userEname": "zhangsan",
"userCname": "张三",
"innerCode": "9a4b3d08e2644e5bb3b404cca0bf2934",
"refreshToken":"ref_123"
}
}
加密后:
4yKaZhv0CeRWncoWC0b5BFMdqarGYGh5C4nmz64%2Bo4nEob4Z91eHKl7%2Fd%2F1UPBLUAr%2BXtQNaYkgWoJrJOGhRGw8qRGeFqGiakHACTtnSOdmcJk79xxrm1nBwlZSXBmnQKr6H6n4gvAfKCEtJSHU3DjiAEwwODWH%2B1NDONK4zutc%3D
2
3
4
5
6
7
8
9
10
11
12
# 3.字典相关接口
# 3.1、根据分类查询字典信息
URL: http://[ip]:7080/taishanApi/tsSecApi/getSystemCodeByType
Description: 根据参数codeTypes,以逗号分割获得要查询的字典分类的编码,根据这些编码去查询字典信息,查询过程中通过orgCode的权限控制查询范围;然后根据dataType对结果数据进行格式规范处理;处理后的结果(value),以JSONObject对象“key(分类编码):value(对应分类结果集)”的形式放入data中。前台以“返回值Object.data.key(分类编码)”的形式获取相应数据集。
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
dataType | string | 需求的数据结构:normal-单层级结构;tree-多层级结构(树状);默认值为normal | false | - |
codeTypes | string | 要查询的字典分类编码,用逗号分隔,例:"code1,code2,code3" | true | - |
orgCode | string | 当前用户所属机构的编码 | true | - |
needRoot | boolean | 当选择树状结构时,是否需要初始化一个根结点,值为:true或false(默认) | false | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"dataType": "normal",
"codeTypes": "DMSX,gender",
"orgCode": "660000000000",
"needRoot": false
}
2
3
4
5
6
7
8
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
gender | Array | 具体返回内容:gender为“性别”的分类编码(分类编码[key]:对应数据[value]) | - |
└─id | String | 字典明细的id | - |
└─code | String | 字典明细的编码 | - |
└─name | String | 字典明细的名称 | - |
└─codeType | String | 字典分类的编码 | - |
└─parentId | String | 字典明细的父节点id | - |
└─children | Array | 子节点信息;数据结构为“tree”时才有该项 | - |
DMSX | Array | 具体返回内容:DMSX为“代码属性”的分类编码(分类编码[key]:对应数据[value])。 | - |
└─id | String | 字典明细的id | - |
...... | ...... | ...... | - |
Response-example:
返回值为单层级[normal]结构示例
{
"code": 200,
"data": {
"ownCode": 200,
"innerMessage": "",
"message": "",
"gender": [
{
"code": "01",
"codeType": "gender",
"name": "男",
"id": "290a69117cc8696402950ecee8c7a6de",
"parentId": "2d94044d9d604e70d9e1daacc48dbdb1"
}
],
"DMSX": [
{
"code": "AllUnify",
"codeType": "DMSX",
"name": "全局统一",
"id": "828ab1cac8b6d82b453e10c798db710b",
"parentId": "1de62a4d0e8e220e97b41de9267244f1"
}
]
},
"success": true,
"message": "OK"
}
返回值为树状[tree]结构示例
{
"code": 200,
"data": {
"ownCode": 200,
"innerMessage": "",
"message": "",
"CSYFZ_DDCJCS": [
{
"code": "01",
"codeType": "CSYFZ_DDCJCS",
"children": [
{
"code": "0101",
"codeType": "CSYFZ_DDCJCS",
"children": [
{
"code": "010101",
"codeType": "CSYFZ_DDCJCS",
"name": "101-1-1",
"id": "05a2b5d609cd531616b18f89ceda0543",
"parentId": "a0269331a64292dd5276219c68e022b5"
},
],
"name": "101-1",
"id": "a0269331a64292dd5276219c68e022b5",
"parentId": "3b880aeef96dee0da65842e3ffc2ee49"
},
],
"name": "101",
"id": "3b880aeef96dee0da65842e3ffc2ee49",
"parentId": "b999e089bdeb4e920053447a03e67fd0"
}
]
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# 3.2、获取所属机构权限内所有字典信息
URL: http://[ip]:7080/taishanApi/tsSecApi/getAllSystemCode
Description: 查询所属机构(orgCode)权限内所有字典信息,然后对结果进行格式规范处理,单层级的字典就是单层级形式;多层级的字典,数据结果上处理为树状结构;然后将处理后的结果(value),以JSONObject对象“key(分类编码):value(对应分类结果集)”的形式放入data中。前台以“返回值Object.data.key(分类编码)”的形式获取相应数据集。
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 当前用户所属机构的编码 | true | - |
needRoot | boolean | 是否需要根节点,默认值为false | false | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"orgCode": "660000000000",
"needRoot": true
}
2
3
4
5
6
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
SYFW | Array | 具体返回内容:SYFW为“使用范围”的分类编码(分类编码[key]:对应数据[value])。 | - |
└─id | String | 字典明细id | - |
└─code | String | 字典明细编码 | - |
└─name | String | 字典明细名称 | - |
└─codeType | String | 字典分类编码 | - |
└─parentId | String | 字典明细的父节点id | - |
TSPT_JGLX | Array | 具体返回内容:TSPT_JGLX为平台分组下的“机构类型”的分类编码(分类编码[key]:对应数据[value])。 | |
└─id | String | 字典明细id | - |
└─code | String | 字典明细编码 | - |
└─name | String | 字典明细名称 | - |
└─codeType | String | 字典分类编码 | - |
└─parentId | String | 字典明细的父节点id | - |
└─children | Array | 字典是单层级的就以单层级结构返回;字典是多层级的就以树状结构返回。树状结构多一个children项存储子节点信息 |
Response-example:
{
"code": 200,
"data": {
"ownCode": 200,
"message": "",
"SYFW": [
{
"code": "01",
"codeType": "SYFW",
"name": "本级使用",
"id": "fe6a0e6e11b21f1ac64bcbfab346657c",
"parentId": "36d486d513608d8eeb56454f900407c1"
}
],
"TSPT_JGLX": {
"code": "TSPT_JGLX",
"codeType": "TSPT_JGLX",
"children": [
{
"code": "02",
"codeType": "TSPT_JGLX",
"children": [
{
"code": "0201",
"codeType": "TSPT_JGLX",
"name": "部委派驻",
"id": "67f2d2d0e5f4be941156b14aa4c904b7",
"parentId": "bf6bf3558525c3c192bad7ee860a0802"
}
],
"name": "派驻机构",
"id": "bf6bf3558525c3c192bad7ee860a0802",
"parentId": "9408cf9c81de76400fae7113e9830a58"
}
],
"name": "机构类型",
"id": "9408cf9c81de76400fae7113e9830a58",
"parentId": "null"
},
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 3.3、查询指定字典明细信息
URL: http://[ip]:7080/taishanApi/tsSecApi/getSystemCodeNode
Description: 查询所属机构(orgCode)权限内指定的字典信息,根据参数决定返回值的数据格式。
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 当前用户所属机构的编码 | true | - |
dataType | string | 返回值的数据结构(tree-树状,normal-数组,默认是数组) | false | - |
codeType | string | 字典类型编码 | true | - |
includeSelf | string | 是否包含自身(1-包含,0-不包含,默认不包含) | false | - |
dicCode | string | 字典明细编码(dicCode和dicName至少一个不为空) | false | - |
dicName | string | 字典明细名称(dicCode和dicName至少一个不为空) | false | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"orgCode": "660000000000",
"codeType": "TSPT_JGLX",
"dicCode": "02",
"dataType": "normal"
}
2
3
4
5
6
7
8
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
SYFW | Array | 具体返回内容:SYFW为“使用范围”的分类编码(分类编码[key]:对应数据[value])。 | - |
└─id | String | 字典明细id | - |
└─code | String | 字典明细编码 | - |
└─name | String | 字典明细名称 | - |
└─codeType | String | 字典分类编码 | - |
└─parentId | String | 字典明细的父节点id | - |
TSPT_JGLX | Array | 具体返回内容:TSPT_JGLX为平台分组下的“机构类型”的分类编码(分类编码[key]:对应数据[value])。 | |
└─id | String | 字典明细id | - |
└─code | String | 字典明细编码 | - |
└─name | String | 字典明细名称 | - |
└─codeType | String | 字典分类编码 | - |
└─parentId | String | 字典明细的父节点id | - |
└─children | Array | 字典是单层级的就以单层级结构返回;字典是多层级的就以树状结构返回。树状结构多一个children项存储子节点信息 |
Response-example:
{
"code": 200,
"data": {
"result": [
{
"code": "0204",
"codeType": "TSPT_JGLX",
"children": [],
"name": "县直派驻",
"id": "0c1ba95a8522d3da093e2dd35b62edbf",
"label": "县直派驻",
"value": "{\"value\":\"0204\",\"label\":\"县直派驻\"}",
"parentId": "bf6bf3558525c3c192bad7ee860a0802"
},
{
"code": "0201",
"codeType": "TSPT_JGLX",
"children": [],
"name": "部委派驻",
"id": "67f2d2d0e5f4be941156b14aa4c904b7",
"label": "部委派驻",
"value": "{\"value\":\"0201\",\"label\":\"部委派驻\"}",
"parentId": "bf6bf3558525c3c192bad7ee860a0802"
},
{
"code": "0202",
"codeType": "TSPT_JGLX",
"children": [],
"name": "省直派驻",
"id": "b48cbb28c52c01b2bb255fe3f5a14d4d",
"label": "省直派驻",
"value": "{\"value\":\"0202\",\"label\":\"省直派驻\"}",
"parentId": "bf6bf3558525c3c192bad7ee860a0802"
},
{
"code": "0203",
"codeType": "TSPT_JGLX",
"children": [],
"name": "市直派驻",
"id": "fad3565caecea06a17569c0eb7378170",
"label": "市直派驻",
"value": "{\"value\":\"0203\",\"label\":\"市直派驻\"}",
"parentId": "bf6bf3558525c3c192bad7ee860a0802"
}
],
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 4.获取组织机信息相关接口
# 4.1、组织机构异步查询/查询下一级(机构、部门)
URL: http://[ip]:7080/taishanApi/tsSecApi/getOrgInfoAsyn
Description: 用于异步查询组织机构,支持回显数据查询,当使用了echoOrgCode回显的组织机构的时候,会把这个这个机构向上到根节点的所有数据都进行回显,方便我们的使用
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 组织机构code | true | - |
purpose | string | 用途 1 2 1,2 '' | false | - |
orgTypes | string | 组织机构类型 通过逗号分割 | false | - |
deptTypes | string | 部门类型 通过逗号分割 | false | - |
needRoot | string | 是否需要根节点 | false | - |
echoOrgCode | string | 回显时候的组织机构code | false | - |
Request-example:
{
"appCode":tsda642866d93041d9908a695e827d2c5c,
"appSecret":912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769,
"orgCode":350000000000,
"purpose":1,
"orgTypes":'',
"deptTypes":'',
"needRoot":true
"echoOrgCode":''
}
2
3
4
5
6
7
8
9
10
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
isParent | string | 是否是父节点 | - |
purpose | string | 机构的用途 部门还是机构 | - |
children | array | 该机构的下级机构或部门 | - |
orgCode | string | 组织机构code | - |
id | string | 组织机构id | - |
label | string | 组织机构名称 | - |
orgShortEname | string | 组织机构英文简称 | - |
organType | string | 组织机构类型 | - |
parentId | string | 组织机构的父id | - |
Response-example:
{
"code": 200,
"data": {
"result": [
{
"isParent": "true",
"purpose": "1",
"children": [
{
"isParent": "false",
"purpose": "1",
"orgCode": "350100000000",
"id": "f209b0bf59f8bbde51e03eac90e2bc0a",
"label": "福州市",
"organType": "05",
"parentId": "111111111111",
"orgShortEname": null
}
],
"orgCode": "350000000000",
"id": "111111111111",
"label": "福建省纪委",
"organType": "05",
"parentId": "-1",
"orgShortEname": null
}
],
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 4.2、获取指定组织机构下的所有机构(部门)(该接口已废弃禁止使用,后期如果出现问题不负责维护)
URL: http://[ip]:7080/taishanApi/tsSecApi/getAllOrgInfoByCode
Description: 根据机构(不包含部门)获取该机构的所有的多级下级机构(部门)
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 组织机构code | true | - |
purpose | string | 用途:1-机构,2-部门 | false | - |
orgTypes | string | 机构类型 | false | - |
deptTypes | string | 部门类型 | false | - |
needRoot | string | 是否需要根节点 | false | - |
dataStruct | string | 数据结构:1-树,2-数组 | false | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"orgCode": "660000000000",
"orgTypes": "02"
}
2
3
4
5
6
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
id | String | 机构id | - |
label | String | 机构名称 | - |
orgShortEname | String | 组织机构英文简称 | - |
orgCode | String | 机构编码 | - |
parentId | String | 父机构id | - |
organType | String | 机构类型 | - |
organLevel | String | 机构层级 | - |
purpose | String | 标识:1-机构;2-部门 | - |
isParent | boolean | 是否有子节点 | - |
Response-example:
{
"code": 200,
"data": {
"result": [
{
"isParent": "false",
"purpose": "1",
"orgCode": "6601CO000000",
"organLevel": 3,
"id": "00fd017ac1e69cd20d1b",
"label": "一师纪委驻公安局纪检监察组",
"organType": "02",
"parentId": "660100 ",
"orgShortEname": null
},
{
"isParent": "false",
"purpose": "1",
"orgCode": "6601CP000000",
"organLevel": 3,
"id": "00fd017ac1e7473e0d1f",
"label": "一师纪委驻检察院纪检监察组",
"organType": "02",
"parentId": "660100 ",
"orgShortEname": null
},
],
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 4.3、获取指定组织机构的上级或下级机构
URL: http://[ip]:7080/taishanApi/tsSecApi/getOrgInfoByCode
Description: 根据机构(不包含部门)获取上级或下级机构(不包含部门)
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
orgCode | String | 组织机构编码 | true | - |
relationType | String | 查询模式:up-查询上级,down-查询下级 | true | - |
isIncludeSelf | String | 是否包含自己true或false默认不包含 | false | - |
num | String | 层级数默认1层 | false | - |
appCode | String | 应用编码 | true | - |
appSecret | String | 应用秘钥 | true | - |
Request-example:
{
"appCode":tsda642866d93041d9908a695e827d2c5c,
"appSecret":912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769,
"orgCode":350000000000,
"purpose":1,
"orgTypes":'',
"deptTypes":'',
"needRoot":true
"echoOrgCode":''
}
2
3
4
5
6
7
8
9
10
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
id | String | 唯一标识 | - |
parentId | String | 父机构id | - |
orgCode | String | 组织机构编码 | - |
label | String | 组织机构名称 | - |
orgShortEname | String | 组织机构英文简称 | - |
purpose | String | 用途 1机构 2部门 | - |
organType | String | 机构类型 | - |
isParent | String | 是否父节点 | - |
children | String | 子机构集合 | - |
Response-example:
{
"code": 200,
"data": {
"result": [{
"isParent": "true",
"purpose": "1",
"orgCode": "350000000000",
"id": "111111111111",
"label": "福建省纪委",
"organType": "05",
"value": "{\"value\":\"111111111111\",\"label\":\"福建省纪委\"}",
"parentId": "-1",
"orgShortEname": null
}, {
"isParent": "false",
"purpose": "1",
"orgCode": "350100000000",
"id": "9cc2f5dffc40ff4f8da2ffa83ef8f4f8",
"label": "福州市纪委",
"organType": "0502",
"value": "{\"value\":\"9cc2f5dffc40ff4f8da2ffa83ef8f4f8\",\"label\":\"福州市纪委\"}",
"parentId": "111111111111",
"orgShortEname": null
}
],
"ownCode": 200,
"innerMessage": "",
"message": ""
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 4.4、获取单个组织机构(部门)信息
URL: http://[ip]:7080/taishanApi/tsSecApi/getOneOrgInfo
Description: 根据id和code获取单个的组织机构(部门)信息
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 组织机构code | false | - |
orgId | string | 组织机构id | false | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"orgCode": "660000000000",
"orgId": "660000 "
}
2
3
4
5
6
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
orgCname | String | 机构/部门名称 | - |
orgShortEname | String | 组织机构英文简称 | - |
purpose | String | 区分标识:1-机构;2-部门 | - |
orgCode | String | 机构/部门编码 | - |
orgEname | String | 机构英文名称 | - |
organLevel | String | 机构层级 | - |
id | String | 机构/部门id | - |
organType | String | 机构类型 | - |
deptType | String | 部门类型 | - |
Response-example:
{
"code": 200,
"data": {
"result": {
"orgCname": "四川省纪委",
"purpose": "1",
"orgCode": "020000000000",
"orgEname": null,
"organLevel": 1,
"id": "e05a9fefb118fae799ead5b85ed1b874",
"organType": "05",
"deptType": null,
"orgShortEname": null
},
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 4.5、获取下级机构以及下级机构的部门
URL: http://[ip]:7080/taishanApi/tsSecApi/getSubOrgAndSubDept
Description: 根据机构(不包含部门)获取下一级机构和下一级机构的下一级部门
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 组织机构code | true | - |
orgTypes | string | 机构类型 | false | - |
deptTypes | string | 部门类型 | false | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"orgCode": "660000000000",
"orgTypes": "02"
}
2
3
4
5
6
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
id | String | 机构id | - |
label | String | 机构名称 | - |
orgCode | String | 机构编码 | - |
parentId | String | 父机构id | - |
organType | String | 机构类型 | - |
organLevel | String | 机构层级 | - |
purpose | String | 标识:1-机构;2-部门 | - |
isParent | boolean | 是否有子节点 | - |
Response-example:
{
"code": 200,
"data": {
"result": [
{
"isParent": "false",
"purpose": "1",
"orgCode": "6601CO000000",
"organLevel": 3,
"id": "00fd017ac1e69cd20d1b",
"label": "一师纪委驻公安局纪检监察组",
"organType": "02",
"parentId": "660100 "
},
{
"isParent": "false",
"purpose": "1",
"orgCode": "6601CP000000",
"organLevel": 3,
"id": "00fd017ac1e7473e0d1f",
"label": "一师纪委驻检察院纪检监察组",
"organType": "02",
"parentId": "660100 "
},
],
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 4.6、获取部门或下级机构(包含人员信息)
URL: http://[ip]:7080/taishanApi/tsSecApi/getOrgAndPersonInfoByOrgCode
Description: 获取部门或下级机构(包含人员信息(查询时关联岗位信息))
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 组织机构code | true | - |
userTypes | string | 用户类型 | false | - |
deptTypes | string | 部门类型 | false | - |
isLeader | string | (是否领导 0否 1是 不填全都要) | false | - |
relatePost | String | 是否关联岗位,true-是,false-否;默认为true | false | - |
Request-example:
{
"appCode":'tsda642866d93041d9908a695e827d2c5c',
"appSecret":'912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab',
"orgCode":'920000000000',
"UserTypes":'y1,y2',
"deptTypes ":'01,02',
"isLeader":'true',
}
2
3
4
5
6
7
8
Response-fields:
机构相关字段
Field | Type | Description | Since |
---|---|---|---|
id | String | 机构id | - |
orgCode | String | 机构编码 | - |
label | String | 机构名称 | - |
isParent | String | 是否父节点 | - |
purpose | String | 用途:1-机构,2-部门 | - |
organLevel | String | 机构层级 | - |
organType | String | 机构类型 | - |
deptType | String | 部门类型 | - |
parentId | String | 父节点id | - |
children | Array | 子节点 | - |
personInfos | Array | 用户信息 | - |
人员相关字段
Field | Type | Description | Since |
---|---|---|---|
id | String | 用户id | - |
name | String | 用户名称 | - |
eName | String | 登录账号 | - |
userCname | String | 用户名称 | - |
userEname | String | 登录账号 | - |
typeName | String | 用户类型名称 | - |
typeCode | String | 用户类型编码 | - |
userEmail | String | 邮箱 | - |
mobilePhone | String | 手机号码 | - |
deptId | String | 所属部门id | - |
Response-example:
{
"code": 200,
"data": {
"result": {
"isParent": "true",
"purpose": "1",
"children": [],
"orgCode": "920000000000",
"organLevel": 1,
"personInfos": [
{
"eName": "zxxxx",
"mobilePhone": null,
"name": "张xx",
"typeName": null,
"deptId": "c3b6bde7bxx0447080915a5d36d70be7",
"userEmail": null,
"id": "a479d487axx94a59a4aecf51e09b9ddb",
"userCname": "张xx",
"userEname": "zxxxx",
"typeCode": null
}
],
"id": "642b7eb4133df2c7bf8feb19e994d6f2",
"label": "中共广州越秀集团股份有限公司 纪律检查委员会 ",
"organType": "0302",
"deptType": null,
"parentId": "-1"
},
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 4.7、查询指定组织的映射关系信息
URL: http://[ip]:7080/taishanApi/tsSecApi/queryMappingOrgInfo
Description: 查询指定组织的映射关系信息
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 机构编码 | true | - |
optType | string | 查询模式:1-根据平台机构查映射机构;2-根据映射机构查平台机构。默认值为"1" | false | - |
Request-example:
{
"appCode":'tsda642866d93041d9908a695e827d2c5c',
"appSecret":'912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab',
"orgCode":'020000000000',
"optType":'1',
}
2
3
4
5
6
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
appCode | String | 应用编码 | - |
orgId | String | 平台机构id | - |
orgCode | String | 平台机构编码 | - |
orgName | String | 平台机构名称 | - |
mappingOrgId | String | 对接方机构id | - |
mappingOrgCode | String | 对接方机构编码 | - |
mappingOrgName | String | 对接方机构名称 | - |
Response-example:
{
"code": 200,
"data": {
"result": {
"mappingOrgName": "福建省纪委监委",
"orgName": "四川省纪委",
"mappingOrgId": "55eaeefe6aab9e7de3830cb2d52aaa07",
"orgCode": "020000000000",
"mappingOrgCode": "350000000000",
"appCode": "ts22f01f755c354821b64099bc0fe521fa",
"orgId": "e05a9fefb118fae799ead5b85ed1b874"
},
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
未查询到时:
{
"code": 200,
"data": {
"result": null,
"ownCode": 201,
"innerMessage": "",
"message": "未查到平台组织[990000000000]与目标应用组织的映射关系"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 4.8、组织机构异步查询下一级(机构)与其对应的人员数量
URL: http://[ip]:7080/taishanApi/tsSecApi/getNextLevelOrgPersonData
Description: 组织机构异步查询下一级(机构)与其对应的人员数量
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 组织机构code | true | - |
isBhbj | string | 是否包含本级 0否 1是 | true | - |
userTypeCodes | string | 人员类型 (1.在编(返聘)人员,3.聘用人员,4.临时人员,5.借调(挂职)人员)传递参数如:1,3,4 | false | - |
Request-example:
{
"appCode":ts65fbd5be84e64653965f3aa0918d4e60,
"appSecret":2955fad57da2a9307472d3992cd663d4c3473453b083f3adab038cb12fbfa6f83c8ecd0c57667bd2,
"orgCode":040000000000,
"isBhbj":1,
"userTypeCodes":'1,3,4'
}
2
3
4
5
6
7
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
isParent | string | 是否是父节点 | - |
purpose | string | 机构的用途 部门还是机构 | - |
children | array | 该机构的下级机构或部门 | - |
personNum | int | 机构下的人员数量 | - |
orgCode | string | 组织机构code | - |
id | string | 组织机构id | - |
label | string | 组织机构名称 | - |
orgShortEname | string | 组织机构英文简称 | - |
organType | string | 组织机构类型 | - |
parentId | string | 组织机构的父id | - |
Response-example:
{
"code": 200,
"data": {
"result": {
"isParent": "true",
"purpose": "1",
"organLevel": 1,
"personNum": 6,
"label": "河北省纪委",
"deptType": null,
"parentId": "-1",
"children": [
{
"isParent": "true",
"purpose": "1",
"orgCode": "040800000000",
"organLevel": 2,
"personNum": 1,
"id": "4361fc116596f633ab02d187eeb2ae80",
"label": "石家庄市纪委",
"organType": "0501",
"deptType": null,
"orgShortCname": "石家庄市纪委",
"parentId": "cf38eadb3431d625bb4679cf7aa88b6c",
"orgShortEname": null
}
],
"orgCode": "040000000000",
"id": "cf38eadb3431d625bb4679cf7aa88b6c",
"organType": "05",
"orgShortCname": "河北省纪委",
"orgShortEname": null
},
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 4.9、组织机构查询下级全部(机构)与其对应的人员数量
URL: http://[ip]:7080/taishanApi/tsSecApi/getAllOrgPersonDataByOrgCode
Description: 组织机构查询下级全部(机构)与其对应的人员数量
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 组织机构code | true | - |
isBhbj | string | 是否包含本级 0否 1是 | true | - |
userTypeCodes | string | 人员类型 (1.在编(返聘)人员,3.聘用人员,4.临时人员,5.借调(挂职)人员)传递参数如:1,3,4 | false | - |
Request-example:
{
"appCode":ts65fbd5be84e64653965f3aa0918d4e60,
"appSecret":2955fad57da2a9307472d3992cd663d4c3473453b083f3adab038cb12fbfa6f83c8ecd0c57667bd2,
"orgCode":040000000000,
"isBhbj":1,
"userTypeCodes":'1,3,4'
}
2
3
4
5
6
7
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
isParent | string | 是否是父节点 | - |
purpose | string | 机构的用途 部门还是机构 | - |
children | array | 该机构的下级机构或部门 | - |
personNum | int | 机构下的人员数量 | - |
orgCode | string | 组织机构code | - |
id | string | 组织机构id | - |
label | string | 组织机构名称 | - |
orgShortEname | string | 组织机构英文简称 | - |
organType | string | 组织机构类型 | - |
parentId | string | 组织机构的父id | - |
Response-example:
{
"code": 200,
"data": {
"result": {
"isParent": "true",
"purpose": "1",
"organLevel": 1,
"personNum": 6,
"label": "河北省纪委",
"deptType": null,
"parentId": "-1",
"children": [
{
"isParent": "true",
"purpose": "1",
"organLevel": 2,
"personNum": 1,
"label": "石家庄市纪委",
"deptType": null,
"parentId": "cf38eadb3431d625bb4679cf7aa88b6c",
"children": [
{
"isParent": "true",
"purpose": "1",
"organLevel": 3,
"personNum": 2,
"label": "北京区纪委",
"deptType": null,
"parentId": "4361fc116596f633ab02d187eeb2ae80",
"children": [
{
"isParent": "false",
"purpose": "1",
"organLevel": 4,
"personNum": 2,
"label": "朝阳街道纪委",
"deptType": null,
"parentId": "4bdb779ed937dbda58fb7dfb2062d9bb",
"orgCode": "040801001000",
"id": "c6f145edae2d21228d51e1e0636cdd61",
"organType": "0504",
"orgShortCname": "朝阳街道纪委",
"value": "{\"value\":\"040801001000\",\"label\":\"朝阳街道纪委\"}",
"orgShortEname": null
}
],
"orgCode": "040801000000",
"id": "4bdb779ed937dbda58fb7dfb2062d9bb",
"organType": "0503",
"orgShortCname": "北京区纪委",
"value": "{\"value\":\"040801000000\",\"label\":\"北京区纪委\"}",
"orgShortEname": null
}
],
"orgCode": "040800000000",
"id": "4361fc116596f633ab02d187eeb2ae80",
"organType": "0501",
"orgShortCname": "石家庄市纪委",
"value": "{\"value\":\"040800000000\",\"label\":\"石家庄市纪委\"}",
"orgShortEname": null
}
],
"orgCode": "040000000000",
"id": "cf38eadb3431d625bb4679cf7aa88b6c",
"organType": "05",
"orgShortCname": "河北省纪委",
"orgShortEname": null
},
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# 5.获取人员信息相关接口
# 5.1、获取当前组织及其上级组织下的领导
URL: http://[ip]:7080/taishanApi/tsSecApi/getLeadersByOrgCode
Description: 1.获取当前机构的领导;2.父一级机构的领导;3.如果指定机构类型,获取与指定机构平级的该机构类型的机构下领导;4.如果选定的是部门,则返回空数据,该接口只针对组织机构
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 组织机构编码 | true | - |
organType | string | 组织机构类型 | false | - |
Request-example:
{
"appCode":'tsda642866d93041d9908a695e827d2c5c',
"appSecret":'912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab',
"orgCode ":'660300000000',
"organType":'02',
}
2
3
4
5
6
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
id | string | 唯一标识 | - |
name | string | 用户中文名称 | - |
Response-example:
{
"code": 200,
"success": true,
"message": "OK",
"data": {
"ownCode": 200,
"message": "",
"innerMessage": "",
"result": [
{
"name": "limou",
"id": "35ad40300561df3b1979ccb5c5ce5c4a",
"label": "limou",
"value": "{\"value\":\"35ad40300561df3b1979ccb5c5ce5c4a\",\"label\":\"limou\"}"
}
]
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 5.2、当前人员所在机构部门下人员
URL: http://[ip]:7080/taishanApi/tsSecApi/getCurDeptPersons
Description: 根据指定userId获取该用户的部门编码(deptCode),根据部门编码查询出该部门下的所有人员
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
userId | string | 人员id | true | - |
isLeader | string | 是否仅获取领导(默认false,获取部门下所有人员) | false | - |
Request-example:
{
"appCode":'tsda642866d93041d9908a695e827d2c5c',
"appSecret":'912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab',
"userId ":'45ddcd09b972c819fd51994b91404b67',
"isLeader":'true',
}
2
3
4
5
6
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
id | string | 唯一标识 | - |
name | string | 用户中文名称 | - |
leaderFlag | string | 是否领导(1 是, 0 否) | - |
Response-example:
{
"code": 200,
"success": true,
"message": "OK",
"data": {
"ownCode": 200,
"message": "",
"innerMessage": "",
"result": [
{
"name": "limou",
"id": "35ad40300561df3b1979ccb5c5ce5c4a",
"label": "limou",
"leaderFlag": "1",
"value": "{\"value\":\"35ad40300561df3b1979ccb5c5ce5c4a\",\"label\":\"limou\"}"
},
{
"name": "李某",
"id": "824158efe54e9a9a1a40cce1e097a2a7",
"label": "李某",
"leaderFlag": "0",
"value": "{\"value\":\"824158efe54e9a9a1a40cce1e097a2a7\",\"label\":\"李某\"}"
}
]
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 5.3、部门及上级机构领导
URL: http://[ip]:7080/taishanApi/tsSecApi/getDeptUpOrgLeaders
Description: 如果指定deptCode为组织机构编码,则返回部门为deptCode下的为领导的人员;如果指定deptCode为部门编码,则循环获取指定部门及其上级部门编码直到上级为机构,然后查询部门编码为获取到的所有编码下的为领导的人员,循环获取时最多为5层,超过5层返回空.
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
deptCode | string | 部门编码 | true | - |
postRel | string | 是否包含兼岗人员(1-是,0-否,默为否) | false | - |
Request-example:
{
"appCode":'tsda642866d93041d9908a695e827d2c5c',
"appSecret":'912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab',
"deptCode ":'660401000000'
}
2
3
4
5
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
id | string | 唯一标识 | - |
name | string | 用户中文名称 | - |
Response-example:
{
"code": 200,
"success": true,
"message": "OK",
"data": {
"ownCode": 200,
"message": "",
"innerMessage": "",
"result": [
{
"name": "limou",
"id": "35ad40300561df3b1979ccb5c5ce5c4a",
"label": "limou",
"value": "{\"value\":\"35ad40300561df3b1979ccb5c5ce5c4a\",\"label\":\"limou\"}"
}
]
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 5.4、获取指定部门下人员
URL: http://[ip]:7080/taishanApi/tsSecApi/getPersonsByDept
Description: 根据指定部门编码deptCode查询出该部门下的所有人员,也可以是在机构下绑定的人员
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 机构编码,orgCode和deptCode至少一个不为空 | true | |
deptCode | string | 部门编码,orgCode和deptCode至少一个不为空 | true | - |
isLeader | string | 是否仅获取领导(默认false,获取部门下所有人员) | false | - |
includeSY | string | true-包含三员,false-不包含三员 | false | - |
extraQuery | string | 01-额外查询兼岗人员,02-额外仅查询兼岗领导,03-仅查询兼岗领导(不查询本部门人员) | false | - |
Request-example:
{
"appCode":'tsda642866d93041d9908a695e827d2c5c',
"appSecret":'912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab',
"deptCode ":'660401000000',
"isLeader ":'true',
"includeSY": 'false'
}
2
3
4
5
6
7
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
id | string | 唯一标识 | - |
name | string | 用户中文名称 | - |
leaderFlag | string | 是否领导(1 是, 0 否) | - |
deptCode | string | 部门编码 | - |
deptName | string | 部门名称 | - |
rankCode | string | 职级编码 | - |
rankName | string | 职级名称 | - |
dutyCode | string | 职务编码 | - |
dutyName | string | 职务名称 | - |
extraPost | string | 是否为兼岗人员:0-否,1-是 | - |
Response-example:
{
"code": 200,
"success": true,
"message": "OK",
"data": {
"ownCode": 200,
"message": "",
"innerMessage": "",
"result": [
{
"deptName": "四川省纪委",
"rankCode": "0300",
"rankName": "正厅局级",
"name": "limou",
"id": "35ad40300561df3b1979ccb5c5ce5c4a",
"label": "limou",
"leaderFlag": "1",
"value": "{\"value\":\"35ad40300561df3b1979ccb5c5ce5c4a\",\"label\":\"limou\"}",
"deptCode": "020000000000",
"dutyCOde": "900",
"dutyName": "其他"
}
]
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 5.5、根据 innerCode 等信息获取用户信息
URL: http://[ip]:7080/taishanApi/tsSecApi/getOnePerson
Description: 根据innerCode 等信息获取用户信息
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
param | map | innerCode等唯一标识 | true | - |
Request-example:
{
"param":A2F6A8451B7C2E83F63F3FBC846C2B67
"appCode":tsda642866d93041d9908a695e827d2c5c
"appSecret":912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769
}
2
3
4
5
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
id | String | 用户id | - |
name | String | 用户名称 | - |
label | String | 用户名称 | - |
Response-example:
{
"code": 200,
"data": {
"result": {
"name": "纪委书记1",
"id": "51cc12e907f8f165a07ca8ce2f570188",
"label": "纪委书记1"
},
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 5.6、根据 tsTokenId/innerCode/userEname/userId 等信息获取用户信息
URL: http://[ip]:7080/taishanApi/tsSecApi/getCurUserInfo
Description: 根据tsTokenId /userEname/innerCode/userId信息获取用户信息
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
tsTokenId/innerCode/userEname/userId | string | tsTokenId/innerCode/userEname/userId其中一个即可 | true | - |
Request-example:
{
"tsTokenId":A439F8A93FB7217F893833F2702C1FBC
"appCode":tsda642866d93041d9908a695e827d2c5c
"appSecret":912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769
}
2
3
4
5
Response-fields:
Field | Type | Description | 长度 |
---|---|---|---|
tsTokenId | string | 用户本次登录的令牌,在获取角色信息以及菜单信息使用使用 | |
userId | string | 用户的id | 32 |
innerCode | string | 用户内部code | 32 |
userEname | string | 用户的英文名称,即登录账号名称 | 50 |
userCName | string | 用户的中文名称 | 50 |
orgId | string | 用户所属组织机构id | 32 |
orgCode | string | 用户所属组织机构code | 50 |
orgName | string | 用户所属组织机构name | 200 |
depId | string | 用户所属部门id | 32 |
deptCode | string | 用户所属部门code | 50 |
deptName | string | 用户所属部门name | 200 |
deptTypes | string | 当前用户所在部门的部门类型(可能存在多个,逗号分割) | 200 |
dutyCode | string | 职务code | 50 |
dutyName | string | 职务名称 | 200 |
deptShortCname | string | 部门中文简称 | 50 |
onlineRoleId | string | 在线的角色id | 32 |
userTypeCode | string | 人员类型 | 50 |
userTypeName | string | 人员类型 | 200 |
innerType | string | 内部用户类型 PTSY QTSY YW | 50 |
roleIds | array | 角色数组 | 200 |
post | string | 用户端口 | 200 |
ip | string | 用户ip | 100 |
userEmail | string | 邮箱 | 200 |
Response-example:
{
"code": 200,
"data": {
"result": {
"deptName": "四川省纪委",
"rankCode": "0300",
"tsTokenId": "",
"dutyCode": "901",
"orgId": "e05a9fefb118fae799ead5b85ed1b874",
"onlineRoleId": null,
"userTypeCode": "3",
"post": null,
"initPsdFlag": null,
"orgCode": "020000000000",
"passwordDays": 0,
"rankName": "正厅局级",
"passwordUpdateDate": null,
"userEmail": "",
"orgShortCname": "四川省纪委",
"deptTypes": null,
"innerCode": "831dc28da708401080b3145db818e514",
"orgName": "四川省纪委",
"userCName": "limou",
"ip": null,
"deptId": "e05a9fefb118fae799ead5b85ed1b874",
"userId": "35ad40300561df3b1979ccb5c5ce5c4a",
"userEname": "scsjw_zs",
"dutyName": "监察机关正职",
"roleIds": [],
"userTypeName": "聘用人员",
"innerType": "YW",
"depId": "e05a9fefb118fae799ead5b85ed1b874",
"deptCode": "020000000000",
"deptShortCname": "四川省纪委"
},
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 5.7、根据岗位、职务、角色查询本级及上级部门机构的人员信息
URL: http://[ip]:7080/taishanApi/tsSecApi/getUserInfoByMultipleCondition
Description: 根据岗位、职务、角色查询本级及上级部门机构的人员信息
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 认证的应用code | true | - |
appSecret | string | 认证的秘钥 | true | - |
deptCode | string | 部门编码 | true | - |
postCodes | string | 岗位编码,可复数个,以“,”分隔 | false | - |
dutyCodes | string | 职务编码,可复数个,以“,”分隔 | false | - |
roleCodes | string | 角色编码,可复数个,以“,”分隔 | false | - |
userTypeCodes | string | 用户属性编码,可复数个,以“,”分隔 | false | - |
leaderFlag | string | 是否领导标识:1或0 | false | - |
containSibling | string | 是否包含同级部门:1或0 | false | - |
Request-example:
{
"appCode":tsda642866d93041d9908a695e827d2c5c
"appSecret":912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769
"deptCode": 95010000D001
"postCodes": 01,02
"dutyCodes": 01,02
"roleCodes": qjs,csjs
"userTypeCodes": t1,t2,t3
"leaderFlag": 0
"containSibling": 0
}
2
3
4
5
6
7
8
9
10
11
Response-example:
{
"code": 200,
"data": {
"result": {
"userInfo": [
{
"id": "0d2d7100eb4e066630bf4bc17c05a584",
"userCname": "分管领导",
"userEname": "xhrs_ld"
}
],
"innerCode": "bc452389fd6a477a925944753fb27f10",
"isParent": "1",
"purpose": "1",
"orgCname": "XXXX",
"organLevel": 2,
"children": [
{
"userInfo": [
{
"id": "c578274ae1dd71856faef244e37a21a6",
"userCname": "测试号",
"userEname": "xhrs_cs"
},
{
"id": "360e9950cdd5696e6284e8a038877534",
"userCname": "本测2",
"userEname": "xhrs_cs2"
},
{
"id": "ed13ef5caaa33a7067d68eef3d1d9d3c",
"userCname": "本级测试3",
"userEname": "xhrs_cs3"
},
{
"id": "0b37ab363e0aa64aa40c4f99a945b80f",
"userCname": "本级测试4",
"userEname": "xhrs_cs4"
}
],
"innerCode": "3e2b14a525c24825aa7bcfe908913a01",
"isParent": "0",
"purpose": "2",
"orgCname": "演示部门",
"organLevel": 2,
"deptType": "02,05,04,01,07",
"children": [],
"parentOrgId": "8c24a1b58a7a28bef41cb97ac9735395",
"orgCode": "95010000D001",
"attributionOrgId": "8c24a1b58a7a28bef41cb97ac9735395",
"id": "174d77b901bc9da7e883834f21be1da8",
"orgShortCname": "演示部门",
"attributionOrgCode": "950100000000"
}
],
"parentOrgId": "b833f84112635181d2e6cb01b00b235b",
"orgCode": "950100000000",
"attributionOrgId": "b833f84112635181d2e6cb01b00b235b",
"id": "8c24a1b58a7a28bef41cb97ac9735395",
"organType": "05",
"orgShortCname": "XXXX",
"attributionOrgCode": "950000000000"
},
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# 5.8、根据机构id或者人员id查询机构或人员的附属信息表数据
2023年7月28日新增
URL: http://[ip]:7080/taishanApi/tsSecApi/getAffiliateDataInfo
Description: 根据岗位、职务、角色查询本级及上级部门机构的人员信息
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 认证的应用code | true | - |
appSecret | string | 认证的秘钥 | true | - |
id | string | 机构或者人员id | true | - |
affiliateFields | string | 要查询的字段,可复数个,以“,”分隔 | false | - |
Request-example:
{
"appCode":tsda642866d93041d9908a695e827d2c5c
"appSecret":912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769
"id":35ad40300561df3b1979ccb5c5ce5c4a,
"affiliateFields":"longField1,longField2"
}
2
3
4
5
6
Response-example:
{
"code": 200,
"data": {
"result": {
"longField2": "",
"longField1": "副1"
},
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
# 5.9、修改用户数据和用户附属表信息
URL: http://[ip]:[port]/taishanApi/tsSecApi/saveOrUpdateOrgPersonInfoApi
Description: 修改用户数据和用户附属表信息
Query-parameters:
由于人员表和附属表字段过多,且附属表相应字段对应功能由用户自己定义,所以下面只列出必填项和部分参考字段,详细字段信息请向管理人员获取两张表的数据字典。
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 认证的应用code | true | - |
appSecret | string | 认证的秘钥 | true | - |
userId | string | 用户id,用户id和登录账号不能都为空 | true | - |
userEname | string | 登录账号,用户id和登录账号不能都为空 | true | - |
userCname | string | 用户名称 | false | - |
shortField1 | string | 附属字段,功能意义由用户在“字段扩展”模块定义 | false | - |
shortField2 | string | 附属字段 | false | - |
longField1 | string | 附属字段 | false | - |
Request-example:
{
"appCode":tsda642866d93041d9908a695e827d2c5c
"appSecret":912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769
"userId":35ad40300561df3b1979ccb5c5ce5c4a,
"userEname":"test1",
"userCname": "名称修改测试",
"shortField1": "cs"
}
2
3
4
5
6
7
8
Response-example:
{
"code": 200,
"data": {
"result": null,
"ownCode": 200,
"innerMessage": "",
"message": "操作成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
# 5.10、根据附属表字段查询用户信息
URL: http://[ip]:[port]/taishanApi/tsSecApi/queryUserInfoByExtraProp
Description: 根据附属表字段查询用户信息
Query-parameters:
参数配置说明:
1、queryOption-自定义查询条件:
格式:“表名简写 _ 字段名 _ 查询模式_连接方式”,例“tpi_shortField1_EQ_AND”
查询模式:EQ-等于(“=“);LR-右模糊匹配(”test%“);LL-左模糊匹配(”%test“);LRL-模糊匹配(”%test%“);IN- in ('','');BTW- between and.
连接方式:AND、OR
表名简写:例ts_person_info的简写为tpi,ts_affiliate_data_info的简写为tadi。
字段名:用驼峰模式,例“SHORT_FIELD_1——shortField1,USER_ENAME——userEname”。
支持多个条件,条件之间用分号(“;")隔开,例:tadi_shortField1_EQ_AND;tadi_shortField2_EQ_OR;tpi_rankCode_BTW_OR。
注意:查询条件是按顺序进行拼接的,请注意连接方式(AND、OR)的顺序。
例:
queryOption: tpi_userEname_EQ_AND;tpi_userCname_EQ_OR;tpi_userType_EQ_AND
处理后拼接:tpi.USER_ENAME = #{userEname,jdbcType=VARCAHR} OR tpi.USER_CNAME = #{userCname,jdbcType=VARCAHR} AND tpi.USER_TYPE = #{userType,jdbcType=VARCAHR}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2、selectField-自定义查询字段:
需要返回的字段信息,如果字段名在两个表里同名,即都为“ID”,则返回的时候,按左到右顺序,第一个以原名称返回,后面的会加上前缀。例如:selectField: tpi_id,tadi_id,tt_id。则返回的时候tpi_id以id返回,tadi_id以tadi_id返回,tt_id以tt_id返回。
格式:“表名简写_字段名称”,例“tpi_userEname"
多个字段用分号(“;")隔开,例:tpi_id;tpi_userEname;tpi_userCname;tadi_shortField1
2
3
3、参数值传递说明: 传递的参数需要和queryOption的条件一一对应。如果字段名称在两个表里同名,则需要加上前缀做区别。如果queryOption里没配置这个参数,则查询时会忽略这个参数,例:
{
"appCode": "ts22f01f755c354821b64099bc0fe521fa",
"appSecret": "c82e2a6591c5e8f0b6d995f94138b40d1a5a616bf6215b876adaa979c4f4d7b0ea9ebca43638503d",
"orgCode": "020000000000",
"queryOption": "tadi_shortField1_EQ_AND;tadi_shortField2_EQ_OR",
"selectField": "tpi_id;tpi.userEname;tpi.userCanem",
"shortField1": "lm",
"shortField2": "limou"
}
当查询模式为IN和BTW时,对应传递的多个参数需要用逗号(“,”)分隔。例如:
"queryOption": "tpi_userEname_IN_AND",
如果是IN则"userEname": "limou,ls,zs,···"
如果是BTW则"userEname": "ls,zs"
当存在同名字段时:
"queryOption": "tpi_useType_EQ_AND;tadi_useType_EQ_AND",
"tpi_useType": "01",
"tadi_useType": "03"
传递参数时需要加上前缀对useType做出区分
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 认证的应用code | true | - |
appSecret | string | 认证的秘钥 | true | - |
orgCode | string | 机构编码 | true | - |
queryOption | string | 自定义查询条件 | true | - |
selectField | string | 自定义查询字段 | true | - |
...... | ||||
shortField1 | string | 参数的名称由自定义查询条件决定 | false | - |
shortField2 | string | 参数的名称由自定义查询条件决定 | false | - |
Request-example:
{
"appCode": "ts22f01f755c354821b64099bc0fe521fa",
"appSecret": "c82e2a6591c5e8f0b6d995f94138b40d1a5a616bf6215b876adaa979c4f4d7b0ea9ebca43638503d",
"orgCode": "020000000000",
"queryOption": "tadi_shortField1_EQ_AND;tadi_shortField2_EQ_OR",
"selectField": "tpi_id;tpi.userEname;tpi.userCanem",
"shortField1": "lm",
"shortField2": "limou"
}
2
3
4
5
6
7
8
9
Response-example:
{
"code": 200,
"data": {
"result": [
{
"id": "35ad40300561df3b1979ccb5c5ce5c4a",
"userCname": "测试1122",
"userEname": "scsjw_zs"
},
{
"id": "824158efe54e9a9a1a40cce1e097a2a7",
"userCname": "李某",
"userEname": "scsjw_lisi"
}
],
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 5.11、根据多个角色id获取该角色下所有用户信息
URL: http://[ip]:7080/taishanApi/tsSecApi/getUserInfoByRoleId
Description: 根据多个角色id获取该角色下所有用户信息
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
roleIds | string | 多个角色id用,分割 | true | - |
isUnion | string | 是否并集 0否(交集) 1是 | true | - |
Request-example:
{
"appCode":ts65fbd5be84e64653965f3aa0918d4e60
"appSecret":2955fad57da2a9307472d3992cd663d4c3473453b083f3adab038cb12fbfa6f83c8ecd0c57667bd2
"roleIds":7067cb9996b09ba6051195261e550199,218c25a45245890b9987c73882b4030e
"isUnion":0
}
2
3
4
5
6
Response-fields:
Field | Type | Description | 长度 |
---|---|---|---|
id | string | 用户的id | 32 |
userEname | string | 用户的英文名称,即登录账号名称 | 50 |
userCName | string | 用户的中文名称 | 50 |
Response-example:
{
"code": 200,
"data": {
"result": [
{
"id": "2b03d8ca083ca5dd371642d9da948d39",
"userCname": "wxj",
"userEname": "hbsjw_wxj"
},
{
"id": "6540cbd48f9daeb8033ce69e69289095",
"userCname": "cs03",
"userEname": "bjqjw_cs03"
},
{
"id": "ed1c0749bc7713db52f96781f1c184a1",
"userCname": "bxh",
"userEname": "hbsjw_bxh"
}
],
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 6.获取角色组织机构权限相关接口
# 6.1、查询角色机构权限信息接口(该接口于2023年7月22日起废弃,不再维护)
URL: http://[ip]:7080/taishanApi/tsSecApi/getRoleDataAuth
Description: 根据roleId、orgCode和labelCode获取指定的数据权限信息。
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
roleId | string | 角色ID | true | - |
orgCode | string | 当前用户所属机构的编码 | true | - |
labelCode | string | 角色机构权限标签,不填时查询“默认权限” | false | - |
purpose | string | 区分标识:1-下级机构及部门,2-本级部门 | false | - |
dataStruct | string | 返回值的数据格式:tree-树,其他或不填-列表 | false | - |
needRoot | string | 数据格式为树时是否需要当前查询机构作为根节点,默认为false,true-需要 | false | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"roleId": "3ab4206bc36aa90603d19223afab089e",
"orgCode": "660000000000",
"purpose": "1",
"dataStruct": "tree"
}
2
3
4
5
6
7
8
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
name | String | 机构/部门名称 | - |
purpose | String | 区分标识:1-机构,2-部门 | - |
code | String | 机构/部门编码 | - |
id | String | 机构/部门ID | - |
organType | String | 机构类型 | - |
deptType | String | 部门类型 | - |
Response-example:
{
"code": 200,
"data": {
"result": [
{
"code": "020800000000",
"purpose": "1",
"parentOrgId": "e05a9fefb118fae799ead5b85ed1b874",
"children": [],
"name": "乐山市纪委",
"id": "5c4c9d7c5f81c508fc5e86ecde7e46f0",
"organType": "05",
"deptType": null,
"orgShortEname": null
},
{
"code": "020900000000",
"purpose": "1",
"parentOrgId": "e05a9fefb118fae799ead5b85ed1b874",
"children": [
{
"code": "020901000000",
"purpose": "1",
"parentOrgId": "6a6c8b9ac73e7ea857d1db025d4405c8",
"children": [],
"name": "同步测试3v2",
"id": "d20c8937f1cd74ee8a2a318a4537f1df",
"organType": "0501",
"deptType": null,
"orgShortEname": null
}
],
"name": "同步测试1v1",
"id": "6a6c8b9ac73e7ea857d1db025d4405c8",
"organType": "0501",
"deptType": null,
"orgShortEname": null
},
{
"code": "021100000000",
"purpose": "1",
"parentOrgId": "e05a9fefb118fae799ead5b85ed1b874",
"children": [],
"name": "测试v11",
"id": "76f6d527b847bdc5ab0b9dc756dc6d95",
"organType": "05",
"deptType": null,
"orgShortEname": null
}
],
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# 6.2、查询本级及上级部门机构的用户的角色信息
URL: http://[ip]:7080/taishanApi/tsSecApi/getRoleInfoByDeptCode
Description: 根据roleId和orgCode获取指定的数据权限信息,一个角色可以以机构为独立区分进行多次机构授权,即两个所属机构不同的用户A和用户B,对角色A进行机构授权时,机构授权信息根据roleId和用户所属机构的orgCode分别独立保存。
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 机构编码 | true | - |
leaderFlag | string | 是否领导:0-否,1-是 | true | - |
systemIds | string | 系统id,可多条,以“,”分隔 | false | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"orgCode": "020000000000"
}
2
3
4
5
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
id | String | 角色id | - |
roleCode | String | 角色编码 | - |
roleName | String | 角色名称 | - |
Response-example:
{
"code": 200,
"data": {
"result": [
{
"roleCode": "sccsyy",
"roleName": "四川测试应用",
"id": "8d667147625d3e5d5cd7c4f3a5c805b7"
},
{
"roleCode": "sccsyyjs2",
"roleName": "四川测试应用角色2",
"id": "a0c7e619e28fdab6b232833078f83ab4"
}
],
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 6.3、根据tokenId获取角色的授权应用的信息及跳转地址
URL: http://[ip]:7080/taishanApi/tsSecApi/queryAuthorizationAppByTokenId
Description: 根据tokenId获取角色的授权应用的信息及跳转地址
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
tsTokenId | string | 用户认证id | true | - |
appCode | string | 认证的应用code | true | - |
appSecret | string | 认证的秘钥 | true | - |
Request-example:
{
"tsTokenId":A2F6A8451B7C2E83F63F3FBC846C2B67
"appCode":tsda642866d93041d9908a695e827d2c5c
"appSecret":912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769
}
2
3
4
5
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
appName | String | 应用名称 | - |
appShortName | String | 应用简称 | - |
url | String | 跳转地址 | - |
Response-example:
{
"code": 200,
"data": {
"result": [
{
"appName": "越秀纪检监察信息化工作平台",
"appShortName": "yxjjjcxxhgzpt",
"url": "127.0.0.1"
}
],
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 6.4、查询角色的机构权限信息接口
URL: http://[ip]:7080/taishanApi/tsSecApi/getRoleDataAuthNew
Description: 根据roleId、orgCode和labelCode获取指定的数据权限信息。
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
roleId | string | 角色ID | true | - |
orgCode | string | 当前用户所属机构的编码 | true | - |
labelCode | string | 角色机构权限标签,不填时查询“默认权限” | false | - |
purpose | string | 查询标识:1-下级机构及下级机构的部门,2-本级部门,不填则查询全部 | false | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"roleId": "3ab4206bc36aa90603d19223afab089e",
"orgCode": "660000000000",
"purpose": "1",
}
2
3
4
5
6
7
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
orgCode | String | 机构/部门编码 | - |
label | String | 机构/部门名称 | - |
orgShortEname | String | 机构/部门简称 | - |
name | String | 机构/部门名称 | - |
purpose | String | 区分标识:1-机构,2-部门 | - |
code | String | 机构/部门编码 | - |
id | String | 机构/部门ID | - |
organType | String | 机构类型 | - |
deptType | String | 部门类型 | - |
Response-example:
{
"code": 200,
"data": {
"result": [
{
"code": "020400000000",
"purpose": "1",
"parentOrgId": "e05a9fefb118fae799ead5b85ed1b874",
"orgCode": "020400000000",
"name": "广安市纪委",
"id": "87f12acd2ef2fc05b2ec6df4f279c35c",
"label": "广安市纪委",
"organType": "05",
"deptType": null,
"orgShortEname": null
},
{
"code": "020800000000",
"purpose": "1",
"parentOrgId": "e05a9fefb118fae799ead5b85ed1b874",
"orgCode": "020800000000",
"name": "乐山市纪委",
"id": "5c4c9d7c5f81c508fc5e86ecde7e46f0",
"label": "乐山市纪委",
"organType": "05",
"deptType": null,
"orgShortEname": null
},
{
"code": "02090000D001",
"purpose": "2",
"parentOrgId": "6a6c8b9ac73e7ea857d1db025d4405c8",
"orgCode": "02090000D001",
"name": "测试部门1",
"id": "6c2dbc486d460f0607220e43e854c609",
"label": "测试部门1",
"organType": null,
"deptType": "",
"orgShortEname": null
},
{
"code": "021000000000",
"purpose": "1",
"parentOrgId": "e05a9fefb118fae799ead5b85ed1b874",
"orgCode": "021000000000",
"name": "同步测试2",
"id": "4f16ae1a18200a821e08a8e6c94bb1ef",
"label": "同步测试2",
"organType": "0501",
"deptType": null,
"orgShortEname": null
},
{
"code": "021100000000",
"purpose": "1",
"parentOrgId": "e05a9fefb118fae799ead5b85ed1b874",
"orgCode": "021100000000",
"name": "测试v11",
"id": "76f6d527b847bdc5ab0b9dc756dc6d95",
"label": "测试v11",
"organType": "05",
"deptType": null,
"orgShortEname": null
}
],
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# 6.5、对用户的某个应用的默认角色进行更新
URL: http://[ip]:7080/taishanApi/tsSecApi/updateDefaultRoleToAppAuthority
Description: 对用户的某个应用的默认角色进行更新(仅对应用授权进行,即仅对某个应用的多角色进行默认角色更新)。
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
roleId | string | 角色ID | true | - |
userId | string | 用户ID | true | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"roleId": "3ab4206bc36aa90603d19223afab089e",
"userId": "c7e2cfaa81252cd2abce48a250041502"
}
2
3
4
5
6
Response-example:
{
"code": 200,
"data": {
"result": null,
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
# 7.行政区划相关接口
# 7.1、查询所有上级及上级的下一级行政区划
URL: http://[ip]:7080/taishanApi/tsSecApi/getRegionDevice
Description: 查询行政区划信息的接口,查询范围为查询所有上级和查询下一级
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
code | string | 行政区划编码 | true | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"code": "110101000000"
}
2
3
4
5
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
code | String | 行政区划编码 | - |
name | String | 行政区划名称 | - |
regionLevelCode | String | 行政区划等级编码 | - |
id | String | 行政区划id | - |
parentId | String | 父级行政区划的id | - |
children | Array | 子一级行政区划 | - |
Response-example:
{
"code": 200,
"data": {
"result": {
"code": "000000000000",
"name": "中央",
"regionLevelCode": "0",
"id": "0fregion000000000000",
"children": [
{
"code": "110000000000",
"name": "北京市",
"regionLevelCode": "1",
"id": "0fregion110000000000",
"parentId": "0fregion000000000000",
"children": [
{
"code": "110100000000",
"children": [
{
"code": "110101000000",
"name": "东城区",
"regionLevelCode": "3",
"id": "0fregion110101000000",
"parentId": "0fregion110100000000"
},
],
"name": "市辖区",
"regionLevelCode": "2",
"id": "0fregion110100000000",
"parentId": "0fregion110000000000"
}
],
},
{
"code": "130000000000",
"name": "河北省",
"regionLevelCode": "1",
"id": "0fregion130000000000",
"parentId": "0fregion000000000000"
},
],
},
"ownCode": 200,
"innerMessage": "",
"message": ""
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 7.2、查询本级或下一级行政区划
URL: http://[ip]:7080/taishanApi/tsSecApi/querySelfAndChildrenRegionDevice
Description: 查询行政区划信息的接口,查询范围为查询本级或下一级
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
code | string | 行政区划编码 | true | - |
needRoot | boolean | 是否需要根节点,即是否包含本级;是(true)则将本级作为根结点,子级放入children中;否(false)则只返回子级 | true | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"code": "110101000000",
"needRoot": "true"
}
2
3
4
5
6
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
code | String | 行政区划编码 | - |
isParent | boolean | 标识该节点是否有子节点 | |
name | String | 行政区划名称 | - |
regionLevelCode | String | 行政区划等级编码 | - |
id | String | 行政区划id | - |
parentId | String | 父级行政区划的id | - |
children | Array | 子一级行政区划 | - |
Response-example:
需要根节点的返回情况:
{
"code": 200,
"data": {
"result": {
"code": "110000000000",
"isParent": true,
"children": [
{
"code": "110100000000",
"isParent": "true",
"name": "市辖区",
"regionLevelCode": "2",
"id": "0fregion110100000000",
"parentRegionCode": "110000000000",
"parentId": "0fregion110000000000"
}
],
"name": "北京市",
"regionLevelCode": "1",
"id": "0fregion110000000000",
"parentId": "0fregion000000000000"
},
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
不需要根节点的返回情况:
{
"code": 200,
"data": {
"result": [
{
"code": "110100000000",
"isParent": "true",
"name": "市辖区",
"regionLevelCode": "2",
"id": "0fregion110100000000",
"parentRegionCode": "110000000000",
"parentId": "0fregion110000000000"
}
],
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 8.扩展接口
# 8.1、查询机构信息并根据机构类型分类
URL: http://[ip]:7080/taishanApi/tsExtendApi/getOrgInfoByOrganType
Description: 查询机构信息并根据机构类型分类
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 机构编码 | true | - |
codeType | string | 字典类型 | true | - |
dicCodes | string | 字典明细 | true | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"orgCode": "110101000000",
"codeType": "TSPT_JGLX",
"dicCodes": "01,02"
}
2
3
4
5
6
7
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
id | String | 字典明细id | - |
code | boolean | 字典明细编码 | - |
name | String | 字典明细名称 | - |
codeTypeId | String | 字典分类id | - |
parentId | String | 字典父节点id | - |
children | String | 子节点 | - |
└─id | String | 机构id | - |
└─code | String | 机构编码 | - |
└─name | String | 机构名称 | - |
└─organType | String | 机构类型 | - |
└─parentId | String | 机构父节点id | - |
Response-example:
{
"code": 200,
"data": {
"result": [
{
"codeTypeId": "9408cf9c81de76400fae7113e9830a58",
"code": "04",
"children": [],
"name": "金融机构",
"id": "946140406414bd04220df2c1d7c184b5",
"parentId": "9408cf9c81de76400fae7113e9830a58"
},
{
"codeTypeId": "9408cf9c81de76400fae7113e9830a58",
"code": "05",
"children": [
{
"code": "020800000000",
"name": "乐山市纪委",
"id": "5c4c9d7c5f81c508fc5e86ecde7e46f0",
"organType": "05",
"parentId": "e05a9fefb118fae799ead5b85ed1b874"
},
{
"codeTypeId": "9408cf9c81de76400fae7113e9830a58",
"code": "0501",
"children": [
{
"code": "020900000000",
"children": [
{
"code": "020901000000",
"name": "同步测试3v2",
"id": "d20c8937f1cd74ee8a2a318a4537f1df",
"organType": "0501",
"parentId": "6a6c8b9ac73e7ea857d1db025d4405c8"
}
],
"name": "同步测试1v1",
"id": "6a6c8b9ac73e7ea857d1db025d4405c8",
"organType": "0501",
"parentId": "e05a9fefb118fae799ead5b85ed1b874"
},
{
"code": "021000000000",
"name": "同步测试2",
"id": "4f16ae1a18200a821e08a8e6c94bb1ef",
"organType": "0501",
"parentId": "e05a9fefb118fae799ead5b85ed1b874"
}
],
"name": "省区市纪委",
"id": "5ae095f7e7801f190e6b991050c35928",
"parentId": "14562ffad8cc1fe5df3bf388cc460b85"
}
],
"name": "纪检监察机关",
"id": "14562ffad8cc1fe5df3bf388cc460b85",
"parentId": "9408cf9c81de76400fae7113e9830a58"
}
],
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# 8.2、获取配置信息的方法
URL: http://[ip]:7080/taishanApi/tsExtendApi/getConfigVal
Description: 获取指定配置信息的值
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
configProps | string | 配置编码 | true | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"configProps": "HT_isUseSsoFlag"
}
2
3
4
5
Response-example:
{
"code": 200,
"data": {
"HT_isUseSsoFlag": "false"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
# 8.3、查询近七天(或者近一个月)本级部门(和下级机构)访问人数
URL: http://[ip]:7080/taishanApi/tsPortalApi/queryStatisticOfLoginLog
Description: 查询近七天(或者近一个月)各地市访问人数以及本机构关近七天(或者近一个月)各部门访问人数。按访问次数倒序排序。
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
id | string | 用户id | true | - |
queryTime | string | 时间查询类型:week-近七天,month-近一个月,diy-自定义范围,不填默认查当天 | false | - |
startDate | string | 起始时间,queryTime为diy时生效 | false | - |
endDate | string | 结束时间,queryTime为diy时生效 | false | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"id": "c3ee35b7edb94781899bbc13560ccb73",
"queryTime": "month"
}
2
3
4
5
6
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
parx | String | 机构/部门名称 | - |
value | int | 访问人次 | - |
Response-example:
org-本级及下级机构
dept-本级部门
{
"code": 200,
"data": {
"result": null,
"ownCode": 200,
"org": [
{
"parx": "新疆生产建设兵团",
"value": 260
},
{
"parx": "一师",
"value": 1
}
],
"innerMessage": "",
"dept": [
{
"parx": "兵团纪委审理室",
"value": 90
},
{
"parx": "兵团纪委第一监督检查室",
"value": 75
},
{
"parx": "兵团纪委第二监督检查室",
"value": 44
},
{
"parx": "兵团纪委信访室",
"value": 17
},
{
"parx": "新疆生产建设兵团",
"value": 15
},
{
"parx": "兵团纪委案件监督管理室",
"value": 10
},
{
"parx": "兵团纪委纪检监察干部监督室",
"value": 8
},
{
"parx": "兵团纪委办公厅",
"value": 1
}
],
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# 9.个性化接口
# 9.1、yx根据tokenid获取用户信息(主文件)
URL: http://[ip]:7080/taishanApi/yxApi/getUserInfoToYx2023年7月27日接口位置发生改动
Description: yx根据tokenid获取用户信息
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
tsTokenId | string | 用户认证id | true | - |
appCode | string | 认证的应用code | true | - |
appSecret | string | 认证的秘钥 | true | - |
Request-example:
{
"tsTokenId":A2F6A8451B7C2E83F63F3FBC846C2B67
"appCode":tsda642866d93041d9908a695e827d2c5c
"appSecret":912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769
}
2
3
4
5
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
tsTokenId | String | tsTokenId | - |
userId | String | 用户id | - |
innerCode | String | 用户innercode | - |
userEname | String | 账号名称 | - |
userCName | String | 中文名称 | - |
orgId | String | 机构id | - |
orgCode | String | 机构编码 | - |
orgName | String | 机构名称 | - |
depId | String | 部门id | - |
deptCode | String | 部门编码 | - |
deptName | String | 部门名称 | - |
innerType | String | 内部用户类型 PTSY QTSY YW | - |
deptTypes | String | 当前用户所在部门的部门类型 | - |
userTypeCode | String | 人员类型编码 | - |
userTypeName | String | 人员类型名称 | - |
userEmail | String | 邮箱 | - |
dutyCode | String | 职务编码 | - |
dutyName | String | 职务名称 | - |
scannerIp | String | 扫描仪ip | - |
unifiedCreditCode | String | 统一社会信用码 | - |
roleId | String | 角色id | - |
roleName | String | 角色名称 | - |
orgShortEname | String | 机构英文简称 | - |
orgShortCname | String | 机构中文简称 | - |
deptShortEname | String | 部门英文简称 | - |
deptShortCname | String | 部门中文简称 | - |
yxOrgCode | String | 主数据机构编码 | - |
yxOrgName | String | 主数据机构名称 | - |
yxDeptCode | String | 主数据部门编码 | - |
yxDeptName | String | 主数据部门名称 | - |
postInfos | object | 岗位信息 | - |
Response-example:
{
"code": 200,
"data": {
"result": {
"yxDeptCode": "",
"deptName": "领导",
"cdNum": "",
"scannerIp": "",
"unifiedCreditCode": "91440101698677792A",
"tsTokenId": "00BDD4B958C47123F7EA93D131A54690",
"dutyCode": "99",
"orgId": "642b7eb4133df2c7bf8feb19e994d6f2",
"onlineRoleId": "",
"userTypeCode": "y1",
"post": "",
"orgCode": "920000000000",
"yxOrgCode": "",
"userEmail": "",
"orgShortCname": "越秀集团",
"deptShortEname": "",
"deptTypes": "10",
"innerCode": "609561042eee44e5955be39e1bcd9f74",
"userCName": "纪委书记1",
"orgName": "中共广州越秀集团股份有限公司 纪律检查委员会 ",
"roleId": "d93fa4fe43a060553e2005a2744f8e79",
"ip": "",
"userId": "51cc12e907f8f165a07ca8ce2f570188",
"userEname": "xiong.linqiong",
"dutyName": "其他",
"postInfos": [
{
"deptName": "领导",
"endDate": null,
"xlFieldCode3": null,
"moduleName": null,
"orgId": "642b7eb4133df2c7bf8feb19e994d6f2",
"shortField1": "1",
"shortField3": null,
"shortField2": null,
"orgCode": "920000000000",
"postName": "领导",
"id": "fcc207d76862c372bf131034c53ea82b",
"deptShortEname": null,
"orgShortCname": "越秀集团",
"longField3": null,
"longField2": null,
"orgName": "中共广州越秀集团股份有限公司纪委检查委员会",
"longField1": "",
"deptId": "ba92ee6ac36b582217e31afcc3f5189a",
"postId": "0aa81f6b604fd1e927498649e10f08b6",
"sort": null,
"userId": "51cc12e907f8f165a07ca8ce2f570188",
"xlFieldCode2": null,
"ids": null,
"xlFieldCode1": "y1",
"xlFieldName1": "纪委书记",
"xlFieldName2": null,
"deptCode": "92000000D001",
"deptShortCname": "领导",
"orgShortEname": null,
"startDate": null,
"xlFieldName3": null,
"officeType": "1"
},
{
"deptName": "领导",
"endDate": null,
"xlFieldCode3": null,
"moduleName": null,
"orgId": "642b7eb4133df2c7bf8feb19e994d6f2",
"shortField1": "0",
"shortField3": null,
"shortField2": null,
"orgCode": "920000000000",
"postName": "领导",
"id": "4ed03469435855564402686391830980",
"deptShortEname": null,
"orgShortCname": "越秀集团",
"longField3": null,
"longField2": null,
"orgName": "中共广州越秀集团股份有限公司纪委检查委员会",
"longField1": "",
"deptId": "ba92ee6ac36b582217e31afcc3f5189a",
"postId": "0aa81f6b604fd1e927498649e10f08b6",
"sort": null,
"userId": "51cc12e907f8f165a07ca8ce2f570188",
"xlFieldCode2": null,
"ids": null,
"xlFieldCode1": "y6",
"xlFieldName1": "综合室内勤人员",
"xlFieldName2": null,
"deptCode": "92000000D001",
"deptShortCname": "领导",
"orgShortEname": null,
"startDate": null,
"xlFieldName3": null,
"officeType": "2"
}
],
"roleIds": [],
"mobilePhone": "",
"userTypeName": "纪委书记",
"innerType": "YW",
"roleName": "通用角色",
"yxDeptName": "",
"depId": "ba92ee6ac36b582217e31afcc3f5189a",
"yxOrgName": "",
"deptCode": "92000000D001",
"orgShortEname": "",
"deptShortCname": "领导"
},
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# 9.2、越秀根据岗位获取角色信息
基本信息和之前保持不变result是角色list里面的第一个 list是角色数组
URL: http://[ip]:7080/taishanApi/yxApi/queryRoleInfoByTokenIdYx
Description: 越秀根据岗位获取角色信息
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
userId | string | 用户id | true | - |
appCode | string | 认证的应用code | true | - |
appSecret | string | 认证的秘钥 | true | - |
personPostRelationId | string | 用户和岗位关联表id | true |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"userId": "A2F6A8451B7C2E83F63F3FBC846C2B67",
"personPostRelationId":"097b7b3dbd416a852e07a56adafd6d85"
}
2
3
4
5
6
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
dataRange | String | 数据权限 | - |
roleId | String | 角色id | - |
absoluteUrl | String | 单角色或者对应应用角色的绝对路径 | - |
roleName | String | 角色名称 | - |
relativeUrl | String | 单角色或者对应应用角色的相对路径 | - |
roleType | String | 角色类型 | - |
isDefault | String | 是否默认 | - |
syType | String | 三员类型 | - |
multipleAppUrl | String | 跳转地址 | - |
Response-example:
{
"code": 200,
"data": {
"result": {
"isDefault": "0",
"dataRange": {
"TSPT_SJQX": "01,02,03"
},
"roleId": "8d667147625d3e5d5cd7c4f3a5c805b7",
"absoluteUrl": "http://127.0.0.1:80/",
"roleCode": "sccsyy",
"errorMessage": null,
"roleName": "四川测试应用",
"errorCode": 0,
"relativeUrl": "/",
"roleType": "YW",
"syType": null,
"multipleAppUrl": null
},
"ownCode": 200,
"innerMessage": "",
"message": "成功",
"resultList": [
{
"isDefault": "0",
"dataRange": {
"TSPT_SJQX": "01,02,03"
},
"roleId": "8d667147625d3e5d5cd7c4f3a5c805b7",
"absoluteUrl": "http://127.0.0.1:80/",
"roleCode": "sccsyy",
"errorMessage": null,
"roleName": "四川测试应用",
"errorCode": 0,
"relativeUrl": "/",
"roleType": "YW",
"syType": null,
"multipleAppUrl": null
}
]
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# 9.3、新华查询当前登录用户的主岗、兼岗所属部门下的用户信息,新华在用(主文件)
URL: http://[ip]:7080/taishanApi/tsZooXinhuaApi/getAvailableRoleInfoOfOrganization
Description: 新华查询当前机构可使用的角色的信息
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 机构编码 | true | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"orgCode": "110101000000"
}
2
3
4
5
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
id | String | 角色id | - |
roleCode | String | 角色编码 | - |
roleName | String | 角色名称 | - |
Response-example:
{
"code": 200,
"data": {
"result": [
{
"roleCode": "ptjs11",
"roleName": "普通角色11",
"id": "0c8137e1ff16f7edabeef64376f903bb"
},
{
"roleCode": "ptjs",
"roleName": "普通角色",
"id": "69b6921e3fd5e00f3f7c8c46ec29231d"
},
{
"roleCode": "sccsyy",
"roleName": "四川测试应用",
"id": "8d667147625d3e5d5cd7c4f3a5c805b7"
},
{
"roleCode": "sccsyyjs2",
"roleName": "四川测试应用角色2",
"id": "a0c7e619e28fdab6b232833078f83ab4"
}
],
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 9.4、新华查询当前机构可使用的角色的信息(自文件)
URL: http://[ip]:7080/taishanApi/tsZooXinhuaApi/getAvailableRoleInfoOfOrganization
Description: 查询当前机构可使用的角色的信息
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 认证的应用code | true | - |
appSecret | string | 认证的秘钥 | true | - |
orgCode | string | 机构编码 | true | - |
Request-example:
{
"appCode":tsda642866d93041d9908a695e827d2c5c
"appSecret":912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769
"userId": 950100000000
}
2
3
4
5
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
id | String | 角色id | - |
roleCode | String | 角色编码 | - |
roleName | String | 角色名称 | - |
Response-example:
{
"code": 200,
"data": {
"result": [
{
"roleCode": "tswd",
"roleName": "泰山文档",
"id": "739df2f21287b7bf96e8e48b24d95939"
},
{
"roleCode": "ceshi",
"roleName": "hjj角色(部门权限)",
"id": "b2aab35887e0d1ae280ab31aafab0b84"
},
{
"roleCode": "test2",
"roleName": "hjj角色(个人权限)",
"id": "3a4806f12630fde5ef25d938ac0dbb75"
},
{
"roleCode": "qjs",
"roleName": "全角色",
"id": "4193a5cc99f175051486de753888d112"
},
{
"roleCode": "cbs",
"roleName": "承办室测试",
"id": "026e03cf605022f58176f00838778698"
},
{
"roleCode": "csjs",
"roleName": "测试角色",
"id": "972d034a50edc17108604d059263d1bd"
},
{
"roleCode": "11",
"roleName": "领导角色",
"id": "ba6e77fa841cf2b6e0a551470ffbcd0f"
}
],
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 9.5、新疆兵团根据tokenId获取角色的授权应用的信息及跳转地址(自文件)
URL: http://[ip]:7080/taishanApi/tsPortalApi/getUserAppsToXj
Description: 新疆兵团根据tokenId获取角色的授权应用的信息及跳转地址
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
tsTokenId | string | tokenId | true | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"tsTokenId": "05D2ACE0F780A3B3AD056D7251F75AF5"
}
2
3
4
5
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
showName | String | 显示名称 | - |
appName | String | 应用名称 | |
appShortName | String | 应用简称 | - |
url | String | 跳转路径 | - |
Response-example:
{
"code": 200,
"data": {
"result": [
{
"showName": "四川测试应用",
"appName": "四川测试应用",
"appShortName": "sccsyy",
"url": "http://127.0.0.1:80/"
}
],
"ownCode": 200,
"ythptList": [],
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 9.6、(zj)根据角色及角色所属机构的机构授权,并根据下级机构截取机构授权信息
URL: http://[ip]:7080/taishanApi/tsZooCscecApi/getRoleDataAuthZj
Description: 根据角色及角色所属机构的机构授权,并根据下级机构截取机构授权信息。当下级机构本身存在机构授权信息时,则获取该下级机构的机构授权信息。
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
roleId | string | 角色ID | true | - |
orgCode | string | 下级机构的编码 | true | - |
labelCode | string | 角色机构权限标签,不填时查询“默认权限” | false | - |
dataStruct | string | 返回值的数据格式:tree-树,其他或不填-列表 | false | - |
needRoot | string | 是否包含当前查询机构本身(树时作为根节点,列表时则在第一个),默认为false,true-需要 | false | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"roleId": "3ab4206bc36aa90603d19223afab089e",
"orgCode": "660000000000",
"purpose": "1",
"dataStruct": "tree"
}
2
3
4
5
6
7
8
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
orgCode | String | 机构/部门编码 | - |
label | String | 机构/部门名称 | - |
orgShortEname | String | 机构/部门简称 | - |
name | String | 机构/部门名称 | - |
purpose | String | 区分标识:1-机构,2-部门 | - |
code | String | 机构/部门编码 | - |
id | String | 机构/部门ID | - |
organType | String | 机构类型 | - |
deptType | String | 部门类型 | - |
Response-example:
{
"code": 200,
"data": {
"result": [
{
"code": "020800000000",
"purpose": "1",
"parentOrgId": "e05a9fefb118fae799ead5b85ed1b874",
"children": [],
"name": "乐山市纪委",
"id": "5c4c9d7c5f81c508fc5e86ecde7e46f0",
"organType": "05",
"deptType": null,
"orgShortEname": null,
"value": "{\"value\":\"020800000000\",\"label\":\"乐山市纪委\"}",
},
{
"code": "020900000000",
"purpose": "1",
"parentOrgId": "e05a9fefb118fae799ead5b85ed1b874",
"children": [
{
"code": "020901000000",
"purpose": "1",
"parentOrgId": "6a6c8b9ac73e7ea857d1db025d4405c8",
"children": [],
"name": "同步测试3v2",
"id": "d20c8937f1cd74ee8a2a318a4537f1df",
"organType": "0501",
"deptType": null,
"orgShortEname": null,
"value": "{\"value\":\"020901000000\",\"label\":\"同步测试3v2\"}",
}
],
"name": "同步测试1v1",
"id": "6a6c8b9ac73e7ea857d1db025d4405c8",
"organType": "0501",
"deptType": null,
"orgShortEname": null,
"value": "{\"value\":\"020900000000\",\"label\":\"同步测试1v1\"}",
},
{
"code": "021100000000",
"purpose": "1",
"parentOrgId": "e05a9fefb118fae799ead5b85ed1b874",
"children": [],
"name": "测试v11",
"id": "76f6d527b847bdc5ab0b9dc756dc6d95",
"organType": "05",
"deptType": null,
"orgShortEname": null,
"value": "{\"value\":\"021100000000\",\"label\":\"测试v11\"}",
}
],
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 9.7、(zj)根据传递的参数查询另外两项的信息
URL: http://[ip]:7080/taishanApi/tsZooCscecApi/getRelationInfoByParamCodeZj
Description: 根据传递的参数查询另外两项的信息,参数查询优先顺序为:orgCode、agOrgCode、xfOrgCode
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 平台组织编码 | false | - |
agOrgCode | string | ag编码 | false | - |
xfOrgCode | string | xf编码 | false | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"orgCode": "660000000000",
}
2
3
4
5
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
orgId | String | 平台组织id | - |
orgCode | String | 平台组织编码 | - |
orgName | String | 平台组织名称 | - |
agOrgCode | String | ag编码 | - |
xfOrgCode | String | 信访编码 | - |
Response-example:
{
"code": 200,
"data": {
"result": {
"orgName": "四川省纪委",
"orgCode": "020000000000",
"agOrgCode": "AG0200",
"orgId": "e05a9fefb118fae799ead5b85ed1b874",
"xfOrgCode": "XF0200"
},
"ownCode": 200,
"innerMessage": "",
"message": "成功"
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 9.8、(zj)中建二期4A查询接口--查询符合范围的人员信息
URL: http://[ip]:7080/taishanApi/tsZooCscecApi/queryPersonInfoListZj
Description: 中建二期4A查询接口--查询符合范围的人员信息。查询条件说明(orgCode in (',') and ( rankCode in (',') or dutyCode in (',') ) and ( ( userCname like {keyword} or deptName like {keyword} or dutyName like {keyword} or rankName like {keyword} ) and orgName like {''} and rankName like {''} )
Query-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appCode | string | 应用编码 | true | - |
appSecret | string | 应用秘钥 | true | - |
orgCode | string | 平台组织编码 | false | - |
rankCode | string | 职级编码 | false | - |
dutyCode | string | 职务编码 | false | - |
keyword | string | 关键词(姓名、单位、职级、职务’四个条件or进行模糊匹配查询) | false | - |
orgName | string | 机构名称 | false | - |
rankName | string | 职级名称 | false | - |
dutyType | string | 0-专职,1-兼职 | false | - |
currentPage | string | 分页参数-当前页数,默认为“1” | false | - |
pageSize | string | 分页参数-页大小,默认为“20”,当为“-1”时查询不做分页 | false | - |
startDate | string | 查询范围开始时间(格式:yyyy-MM-dd HH:mm:ss) | false | - |
endDate | string | 查询范围结束时间(格式:yyyy-MM-dd HH:mm:ss) | false | - |
Request-example:
{
"appCode": "tsda642866d93041d9908a695e827d2c5c",
"appSecret": "912cc3640014d5467c234258cfe55b7bf36deaab708c9189c7c645514429ab97443c40c76d051769",
"orgCode": "020000000000,020100000000",
}
2
3
4
5
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
id | String | 用户id | - |
userCname | String | 用户名称 | - |
userEname | String | 登录账号 | - |
orgId | String | 机构id | - |
orgCode | String | 机构编码 | - |
orgName | String | 机构名称 | - |
deptId | String | 部门id | - |
deptCode | String | 部门编码 | - |
deptName | String | 部门名称 | - |
dutyCode | String | 职务编码 | - |
dutyName | String | 职务名称 | - |
rankCode | String | 职级编码 | - |
rankName | String | 职级名称 | - |
sexCode | String | 性别编码 | - |
sexName | String | 性别名称 | - |
telephone | String | 电话号码 | - |
mobilePhone | String | 手机号码 | - |
cdTypeCode | String | 证件类型编码 | - |
cdTypeName | String | 证件类型名称 | - |
cdNum | String | 证件号码 | - |
Response-example:
{
"code": 200,
"data": {
"ownCode": 200,
"currPage": 1,
"innerMessage": "",
"pageSize": 20,
"message": "message",
"totalCount": 2,
"list": [
{
"deptName": "四川省纪委",
"orgName": "四川省纪委",
"orgCode": "020000000000",
"rankName": "中管正厅",
"deptId": "e05a9fefb118fae799ead5b85ed1b874",
"id": "824158efe54e9a9a1a40cce1e097a2a7",
"userCname": "李某",
"userEname": "scsjw_lisi",
"orgId": "e05a9fefb118fae799ead5b85ed1b874",
"deptCode": "020000000000",
"dutyName": "纪检监察机关副职"
},
{
"deptName": "成都市纪委",
"orgName": "成都市纪委",
"orgCode": "020100000000",
"rankName": "副省部级",
"deptId": "c9be6147879a61d9ccc36ce65068e57e",
"id": "c4f9ee95d25f50cdce92d082da55cd11",
"userCname": "limou1",
"userEname": "cdsjw_lisi",
"orgId": "c9be6147879a61d9ccc36ce65068e57e",
"deptCode": "020100000000",
"dutyName": "纪检组长"
}
]
},
"success": true,
"message": "OK"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41