/auth/check-permission
当前认证用户对指定资源/操作的权限检查(identity-service 自身认证流程调用;RBAC 主服务见 rbac-service)。需 bearerAuth 认证。
请求体
Schema: service-identity/internal/handler/dto.CheckPermissionRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
action |
string |
是 | Action | ||
resource |
string |
是 | Resource |
响应
引用的 Schema
service-core/base/dto.DataResponse-service-identity/internal/handler/dto/PermissionCheckResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
data |
service-identity/internal/handler/dto.PermissionCheckResponse |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
service-identity/internal/handler/dto.PermissionCheckResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
allowed |
boolean |
否 |