全量拉取角色信息(接口开发中)
路径:api/organizeRole/getRoleList
接口说明:获取企业角色信息
URL结构
https://open.rabbitpre.com/api/organizeRole/getRoleList
接口协议:https
请求方式:get请求
请求参数
参数 | 必选 | 类型 | 说明 |
---|
opfid | true | String | 开放平台id |
nonce | true | String | 6位随机字符串 |
timestamp | true | String | 签名时间戳 |
companyId | true | String | 第三方平台企业id |
signature | true | String | 签名 |
uid | true | String | 第三方用户ID |
请求示例
换行和缩进只是为了更好的展示:
https://open.rabbitpre.com/api/organizeRole/getRoleList
返回参数
参数 | 类型 | 说明 |
---|
systemRole |
| 系统角色 |
customRole |
| 自定义角色 |
roleName | String | 角色名称 |
roleType | Integer | 角色类型(1系统角色 2企业角色 ) |
roleId | Long | 角色ID |
返回成功示例
{ "code": "200", "errorCode": "SUCCESS", "msg": "ok", "data": { "systemRole": [ { "roleName": "企业超管", "roleType": 1, "roleId": "599672295795068929" }, { "roleName": "业务管理员", "roleType": 1, "roleId": "599672295795068932" }, { "roleName": "渠道管理员", "roleType": 1, "roleId": "599672295795068928" }, { "roleName": "策划员", "roleType": 1, "roleId": "599672295795068930" }, { "roleName": "普通员工", "roleType": 1, "roleId": "599672295795068931" } ], "customRole": [ { "roleName": "实习", "roleType": 2, "roleId": "719589112595746816" }, { "roleName": "hxx测试", "roleType": 2, "roleId": "749998622640312320" }, { "roleName": "黄丽萍部门权限", "roleType": 2, "roleId": "773569870821462016" }, { "roleName": "电饭锅", "roleType": 2, "roleId": "775718582293237760" }, { "roleName": "群SOP", "roleType": 2, "roleId": "806108373912666112" }, { "roleName": "核销", "roleType": 2, "roleId": "821787990421676032" }, { "roleName": "测试企微群管理", "roleType": 2, "roleId": "842061474712399872" }, { "roleName": "子账号", "roleType": 2, "roleId": "859804635929001984" }, { "roleName": "渠道管理员2", "roleType": 2, "roleId": "865594356311539712" }, { "roleName": "新增自定义", "roleType": 2, "roleId": "871706856102838272" } ] } } |
---|