角色组模块

一、角色组查看

接口地址 https://www.yingxiongyun.com/tenant/api/v1/t/roleGroups

请求方式 GET

consumes ["application/json"]

produces ["*/*"]

接口描述 ``

请求参数

暂无

 

响应状态

状态码说明schema
200OK响应结果对象«分页对象«分组名称»»
401Unauthorized 
403Forbidden 
404Not Found 

 

响应参数

参数名称参数说明类型schema
code结果码integer(int32)integer(int32)
data结果数据分页对象«分组名称»分页对象«分组名称»
message结果描述string 
timestamp时间戳integer(int64)integer(int64)

 

schema属性说明

分页对象«分组名称»

参数名称参数说明类型schema
body分页数据array分组名称
pageNum当前页数integer(int32) 
pageSize每页条数integer(int32) 
total总条数integer(int64) 

分组名称

参数名称参数说明类型schema
corpId团队IDstring 
createdAt创建时间string(date-time) 
createdBy创建人string 
deletedFlag删除标识boolean 
id唯一标识string 
lastModifiedAt修改时间string(date-time) 
lastModifiedBy最后修改人string 
name角色组名称string 
position顺序integer(int32) 

 

 

响应示例

二、角色组创建

接口地址 https://www.yingxiongyun.com/tenant/api/v1/t/roleGroups

请求方式 POST

consumes ["application/json"]

produces ["*/*"]

接口描述 新增一条记录

请求参数

参数名称参数说明请求类型是否必须数据类型schema
bodybodybodytrue角色组创建请求体角色组创建请求体

 

schema属性说明

角色组创建请求体

参数名称参数说明请求类型是否必须数据类型schema
name角色组名称bodyfalsestring 

 

 

响应状态

状态码说明schema
200OK响应结果对象«角色组响应数据»
201Created 
401Unauthorized 
403Forbidden 
404Not Found 

 

响应参数

参数名称参数说明类型schema
code结果码integer(int32)integer(int32)
data结果数据角色组响应数据角色组响应数据
message结果描述string 
timestamp时间戳integer(int64)integer(int64)

 

schema属性说明

角色组响应数据

参数名称参数说明类型schema
enableManageFlag可管理boolean 
id主键IDstring 
name角色组名称string 
roleResponseList角色array角色树响应数据

角色树响应数据

参数名称参数说明类型schema
description角色描述string 
enableManageFlag可管理boolean 
groupId角色组主键idstring 
id主键IDstring 
name角色名称string 
status角色状态 normal正常,deactivate停用string 

 

 

响应示例

三、角色组修改

接口地址 https://www.yingxiongyun.com/tenant/api/v1/t/roleGroups/{groupId}

请求方式 PUT

consumes ["application/json"]

produces ["*/*"]

接口描述 修改一条记录

请求参数

参数名称参数说明请求类型是否必须数据类型schema
groupIdgroupIdpathtruestring 
bodybodybodytrue角色组修改请求体角色组修改请求体

 

schema属性说明

角色组修改请求体

参数名称参数说明请求类型是否必须数据类型schema
name角色组名称bodyfalsestring 

 

 

响应状态

状态码说明schema
200OK响应结果对象«角色组响应数据»
201Created 
401Unauthorized 
403Forbidden 
404Not Found 

 

响应参数

参数名称参数说明类型schema
code结果码integer(int32)integer(int32)
data结果数据角色组响应数据角色组响应数据
message结果描述string 
timestamp时间戳integer(int64)integer(int64)

 

schema属性说明

角色组响应数据

参数名称参数说明类型schema
enableManageFlag可管理boolean 
id主键IDstring 
name角色组名称string 
roleResponseList角色array角色树响应数据

角色树响应数据

参数名称参数说明类型schema
description角色描述string 
enableManageFlag可管理boolean 
groupId角色组主键idstring 
id主键IDstring 
name角色名称string 
status角色状态 normal正常,deactivate停用string 

 

 

响应示例

四、删除角色组

 

接口地址 https://www.yingxiongyun.com/tenant/api/v1/t/roleGroups/{groupId}

请求方式 DELETE

consumes ["application/json"]

produces ["*/*"]

接口描述 删除一条记录

请求参数

参数名称参数说明请求类型是否必须数据类型schema
groupIdgroupIdpathtruestring 

 

 

响应状态

状态码说明schema
200OK响应结果对象«boolean»
204No Content 
401Unauthorized 
403Forbidden 

 

响应参数

参数名称参数说明类型schema
code结果码integer(int32)integer(int32)
data结果数据boolean 
message结果描述string 
timestamp时间戳integer(int64)integer(int64)

 

 

响应示例