GET /internal/applications/{app_id}/permissions
查询用户在指定应用中的角色和权限列表,供gateway鉴权中间件调用
租户服务 - 内部接口 None application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
app_id |
path |
string |
Yes |
|
|
|
应用ID |
userId |
query |
string |
Yes |
|
|
|
用户ID |
tenantId |
query |
string |
Yes |
|
|
|
租户ID |
Referenced Schemas
dto.UserPermissionDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.UserPermissionResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.UserPermissionResponse
用户在应用中的权限信息
| Field | Type | Required | Example | Constraints | Description |
app_code |
string |
No |
my-app |
|
|
app_id |
string |
No |
app_abc123 |
|
|
has_access |
boolean |
No |
|
|
|
permissions |
array of
string |
No |
['["read"', '"write"]'] |
|
|
role |
string |
No |
editor |
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|