role - 角色
- api/user/role/getlist GET 获取角色列表
- api/user/role/get GET 根据id获取角色
- api/user/role/create POST 新增角色
- api/user/role/update POST 更新角色信息
- api/user/role/delete POST 根据id删除角色
- api/user/role/getpermissionsbyroleid GET 获取角色对应的菜单id集合
- api/user/role/updaterolemenus POST 更新角色对应的菜单
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | int | |
| inUse | boolean | 是否启用 |
| name | string | 名称 |
响应示例
application/json, text/json
[
{
"name": "",
"inUse": true,
"id": 3
},
{
"name": "",
"inUse": true,
"id": 3
}
]
Uri请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | int | id |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | int | |
| inUse | boolean | 是否启用 |
| name | string | 名称 |
响应示例
application/json, text/json
{
"name": "",
"inUse": true,
"id": 3
}
Body请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | int | |
| inUse | boolean | 是否启用 |
| name | string | 名称 |
请求示例
application/json, text/json
{
"name": "",
"inUse": true,
"id": 3
}
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | string | |
| status | string | 200:; 500:; 601:; 602:; 603:; 604:; 605:; 606:; 607:; 608:; 701:; 702:; 703:; 704:; 801:; 901:; 902:; 903:; 904:; 905:; 1001:; 1002:; 1003: |
响应示例
application/json, text/json
{
"status": 200,
"message": ""
}
Body请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | int | |
| inUse | boolean | 是否启用 |
| name | string | 名称 |
请求示例
application/json, text/json
{
"name": "",
"inUse": true,
"id": 3
}
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | string | |
| status | string | 200:; 500:; 601:; 602:; 603:; 604:; 605:; 606:; 607:; 608:; 701:; 702:; 703:; 704:; 801:; 901:; 902:; 903:; 904:; 905:; 1001:; 1002:; 1003: |
响应示例
application/json, text/json
{
"status": 200,
"message": ""
}
Body请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | int |
请求示例
application/json, text/json
{
"id": 1
}
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | string | |
| status | string | 200:; 500:; 601:; 602:; 603:; 604:; 605:; 606:; 607:; 608:; 701:; 702:; 703:; 704:; 801:; 901:; 902:; 903:; 904:; 905:; 1001:; 1002:; 1003: |
响应示例
application/json, text/json
{
"status": 200,
"message": ""
}
Uri请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | int |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| menuId | int | 菜单id |
| permission | int | 权限集 |
| roleId | int | 角色id |
响应示例
application/json, text/json
[
{
"roleId": 1,
"menuId": 2,
"permission": 3
},
{
"roleId": 1,
"menuId": 2,
"permission": 3
}
]