文档
测试
现存接口

获取门户所有角色

GET
https://portal.dev2.supwisdom.com/portal-api/v1/role/findAll

接口描述

使用在门户服务、资讯、日程模块

请求头

参数名
类型
描述
必填
x-id-token
string
用户token
必填

响应参数

application/json
参数名
类型
描述
必填
状态
code
int
0:成功;-1:失败;
必填
message
string
接口访问状况信息
必填
data
array
数据列表
必填
applicationId
string
应用id
必填
现存
roles
array
角色列表
必填
现存
sortNumber
float
排序号
必填
新增

说明 / 示例

```json { applicationId: "60", roles: [{id: "hzytest", sortNumber:5, // 新增 enabled: true, name: "hzy测试", code: "hzytest", description: ""}] } ```