部署环境 133.96.94.176:12128 本地环境 127.0.0.1:12128
POST http://127.0.0.1:12128/api/verification
Content-Type: application/json
{
"token": "test_token_abc",
"fromSystem": "test",
"system": "liucheng"
}
HTTP/1.1 200
Content-Type: application/json
Transfer-Encoding: chunked
Date: Fri, 15 Jul 2022 01:57:35 GMT
Connection: close
{
"success": true,
"code": 1,
"message": "成功",
"data": {
"account": "test_handan",
"userId": 21,
"userName": "测试用户_邯郸市"
}
}
入参: callType findRoleList userName 用户名,支持模糊搜索
POST http://133.96.94.176:12128/rest/flow/api
Content-Type: application/json
{
"callType": "findRoleList",
"userName": "王"
}
HTTP/1.1 200
Content-Type: application/json
Transfer-Encoding: chunked
Date: Fri, 15 Jul 2022 02:07:39 GMT
Connection: close
{
"success": true,
"code": 1,
"message": "成功",
"data": [
{
"roleId": 4,
"roleName": "分析组",
"cities": []
},
{
"roleId": 3,
"roleName": "管理"
}
]
}
入参: callType findToPage
POST http://127.0.0.1:12128/rest/flow/api
Content-Type: application/json
{
"callType": "findToPage"
}
POST http://133.96.94.176:12128/rest/flow/api
Content-Type: application/json
{
"callType": "getByLoginId",
"loginId": "test_handan"
}
HTTP/1.1 200
Content-Type: application/json
Transfer-Encoding: chunked
Date: Fri, 15 Jul 2022 03:39:35 GMT
Connection: close
{
"success": true,
"code": 1,
"message": "成功",
"data": {
"userId": 21,
"loginId": "test_handan",
"userName": "测试用户_邯郸市",
"mobile": "13231899751",
"email": null,
"org": {
"orgId": 130400,
"orgName": "邯郸市"
},
"district": null
}
}
POST http://133.96.94.176:12128/rest/flow/api
Content-Type: application/json
{
"callType": "get",
"userId": "4"
}
HTTP/1.1 200
Content-Type: application/json
Transfer-Encoding: chunked
Date: Fri, 15 Jul 2022 03:44:42 GMT
Connection: close
{
"success": true,
"code": 1,
"message": "成功",
"data": {
"userId": 3,
"loginId": "13111111111",
"userName": "张三",
"mobile": "13111111111",
"email": null,
"org": {
"orgId": 130100,
"orgName": "石家庄市"
},
"district": null
}
}
POST http://133.96.94.176:12128/rest/flow/api
Content-Type: application/json
{
"callType": "findRoleIdByUserId",
"userId": "4"
}
HTTP/1.1 200
Content-Type: application/json
Transfer-Encoding: chunked
Date: Fri, 15 Jul 2022 03:45:44 GMT
Connection: close
{
"success": true,
"code": 1,
"message": "成功",
"data": [
3,
4
]
}
POST http://133.96.94.176:12128/rest/flow/api
Content-Type: application/json
{
"callType": "findUserIdByRoleId",
"roleId": "3"
}
入参说明: callType findAuthorizedUser roleId 可选 为空字符串与不传这个参数相同处理 userName 可选 为空字符串与不传这个参数相同处理 可模糊查询 loginId 可选 为空字符串与不传这个参数相同处理
POST http://133.96.94.176:12128/rest/flow/api
Content-Type: application/json
{
"callType": "findAuthorizedUser",
"roleId": "3"
}
HTTP/1.1 200
Content-Type: application/json
Transfer-Encoding: chunked
Date: Fri, 15 Jul 2022 04:02:33 GMT
Connection: close
{
"success": true,
"code": 1,
"message": "成功",
"data": [
{
"userId": 3,
"loginId": "13111111111",
"userName": "张三",
"mobile": "13111111111",
"email": null,
"org": {
"orgId": 130100,
"orgName": "石家庄市"
},
"district": null
},
{
"userId": 7,
"loginId": "13866666666",
"userName": "赵六宝",
"mobile": "13866666666",
"email": "6324124512@163.com",
"org": {
"orgId": -1,
"orgName": "河北省"
},
"district": null
},
{
"userId": 1,
"loginId": "flowSystem",
"userName": "系统用户",
"mobile": "",
"email": "",
"org": {
"orgId": -1,
"orgName": "河北省"
},
"district": null
},
{
"userId": 4,
"loginId": "test_abc",
"userName": "李四喜",
"mobile": "13444444444",
"email": "@163.com",
"org": {
"orgId": 130200,
"orgName": "唐山市"
},
"district": null
}
]
}
POST http://133.96.94.176:12128/rest/flow/api
Content-Type: application/json
{
"callType": "getRoleCityByUserId",
"userId": "4"
}
HTTP/1.1 200
Content-Type: application/json
Transfer-Encoding: chunked
Date: Fri, 22 Jul 2022 09:02:33 GMT
Connection: close
{
"success": true,
"code": 1,
"message": "成功",
"data": [
{
"roleId": 5,
"roleName": "工单处理(优化处理)",
"cities": [
130200
]
},
{
"roleId": 12,
"roleName": "工单答复",
"cities": [
130200
]
},
{
"roleId": 6,
"roleName": "工单处理(维护处理)",
"cities": [
130200
]
},
{
"roleId": 13,
"roleName": "工单处理(处理审核)",
"cities": [
130200
]
},
{
"roleId": 4,
"roleName": "工单处理(投诉分析)",
"cities": [
130200
]
},
{
"roleId": 3,
"roleName": "工单查询",
"cities": [
130200
]
},
{
"roleId": 7,
"roleName": "工单处理(建设处理)",
"cities": [
130200
]
},
{
"roleId": 8,
"roleName": "工单处理(工单审核)",
"cities": [
130200
]
}
]
}
开发环境
POST http://127.0.0.1:12128/rest/flow/api/userTree
Content-Type: application/json
{
"city": 130200,
"role": [4],
"user": []
}
HTTP/1.1 200
Content-Type: application/json
Transfer-Encoding: chunked
Date: Fri, 05 Aug 2022 07:49:11 GMT
Connection: close
{
"success": true,
"code": 1,
"message": "成功",
"data": [
{
"name": "河北省",
"child": [
{
"name": "省公司",
"child": [
{
"name": "河北省",
"userName": "王玉龙",
"userId": 24,
"child": []
}
]
}
]
},
{
"name": "唐山市",
"child": [
{
"name": "市公司",
"child": [
{
"name": "唐山市",
"userName": "郭栋",
"userId": 219,
"child": []
},
{
"name": "唐山市",
"userName": "测试用户_李四喜",
"userId": 4,
"child": []
},
{
"name": "唐山市",
"userName": "王振",
"userId": 30,
"child": []
}
]
},
{
"name": "路南区",
"child": [
{
"name": "路南区",
"userName": "夏杰",
"userId": 236,
"child": []
}
]
},
{
"name": "路北区",
"child": [
{
"name": "路北区",
"userName": "陈琳",
"userId": 237,
"child": []
}
]
},
{
"name": "古冶区",
"child": [
{
"name": "古冶区",
"userName": "李志香",
"userId": 224,
"child": []
}
]
},
{
"name": "开平区",
"child": [
{
"name": "开平区",
"userName": "王跃东",
"userId": 234,
"child": []
}
]
},
{
"name": "丰南区",
"child": [
{
"name": "丰南区",
"userName": "张力山",
"userId": 235,
"child": []
},
{
"name": "丰南区",
"userName": "冯雪征",
"userId": 240,
"child": []
}
]
},
{
"name": "丰润区",
"child": [
{
"name": "丰润区",
"userName": "刘雅光",
"userId": 223,
"child": []
}
]
},
{
"name": "曹妃甸区",
"child": [
{
"name": "曹妃甸区",
"userName": "苏晓辉",
"userId": 226,
"child": []
},
{
"name": "曹妃甸区",
"userName": "贾鹏莹",
"userId": 232,
"child": []
}
]
},
{
"name": "滦南县",
"child": [
{
"name": "滦南县",
"userName": "王晓红",
"userId": 228,
"child": []
}
]
},
{
"name": "乐亭县",
"child": [
{
"name": "乐亭县",
"userName": "苏惠芳",
"userId": 225,
"child": []
}
]
},
{
"name": "迁西县",
"child": [
{
"name": "迁西县",
"userName": "程成",
"userId": 220,
"child": []
}
]
},
{
"name": "玉田县",
"child": [
{
"name": "玉田县",
"userName": "高振宇",
"userId": 221,
"child": []
}
]
},
{
"name": "遵化市",
"child": [
{
"name": "遵化市",
"userName": "张灵芝",
"userId": 230,
"child": []
}
]
},
{
"name": "迁安市",
"child": [
{
"name": "迁安市",
"userName": "訾悦馨",
"userId": 233,
"child": []
}
]
},
{
"name": "滦州市",
"child": [
{
"name": "滦州市",
"userName": "张望然",
"userId": 231,
"child": []
}
]
},
{
"name": "海港区",
"child": [
{
"name": "海港区",
"userName": "颜君明",
"userId": 229,
"child": []
}
]
},
{
"name": "高开区",
"child": [
{
"name": "高开区",
"userName": "王梦云",
"userId": 227,
"child": []
}
]
}
]
}
]
}