POST /auth/check-permission

当前认证用户对指定资源/操作的权限检查(identity-service 自身认证流程调用;RBAC 主服务见 rbac-service)。需 bearerAuth 认证。

RBAC - 权限 None application/json

请求体

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 否