修改分级授权角色
开发中
POST
/openservice/eagle-user/role/updateSysRole
public void UpdateSysRole() {
EagleUserRoleUpdateSysRolePostRequest request = new EagleUserRoleUpdateSysRolePostRequest();
request.setEntId("apiceshiqiye");
request.setUserId("apitest");
request.setRoleId("901467995114496");
request.setRoleName("测试");
String str = "[{\"id\": \"81\", \"name\": \"邹铁梅\", \"type\": \"department\", \"checked\": true, \"parents\": [\"1\"], \"blacklist\": [], \"parent_id\": \"1\"}]";
List<EagleUserRoleUpdateSysRoleRequestBodyRolesInner> list = JSON
.parseArray(str, EagleUserRoleUpdateSysRoleRequestBodyRolesInner.class);
request.setRoles(list);
EagleUserRoleUpdateSysRoleResponse response = qpaasHttpClient.doAction(request);
System.out.println(response.getResult());
}
请求参数
Header 参数
Cookie
string
101
默认值:
PHPSESSID=2b6bcd0d-8fbe-4dfc-86f7-1f52397d4b0a; access_token=2b6bcd0d-8fbe-4dfc-86f7-1f52397d4b0a
X-Qpaas-Dev-Tags
string
共用环境(本地)
默认值:
ylh
Body 参数application/json
示例代码
返回响应
修改于 2024-07-02 06:17:58