POST /auth/check-role

当前认证用户是否拥有指定角色代码(identity-service 自身认证流程调用;RBAC 主服务见 rbac-service)。需 bearerAuth 认证。

RBAC - 权限 None application/json

请求体

Schema: service-identity/internal/handler/dto.CheckRoleRequest

字段类型必填示例约束描述
role_code string 是 Role code

响应

引用的 Schema

service-core/base/dto.DataResponse-service-identity/internal/handler/dto/RoleCheckResponse

字段类型必填示例约束描述
code integer 否
data service-identity/internal/handler/dto.RoleCheckResponse 否
message string 否
timestamp string 否

service-core/base/dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否

service-identity/internal/handler/dto.RoleCheckResponse

字段类型必填示例约束描述
has_role boolean 否