POST /auth/me/role-activations

用户提交角色激活请求(即时提权JIT),提供角色ID、理由和有效时长

RBAC - 角色 `bearerAuth` application/json

请求体

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

字段类型必填示例约束描述
duration string 是
justification string 是
role_id string 是

响应

引用的 Schema

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

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

service-core/base/dto.SimpleResponse

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

service-identity/internal/handler/dto.ActivationResponse

字段类型必填示例约束描述
activated_at string 否
created_at string 否
expire_at string 否
id string 否
justification string 否
revoked_at string 否
role_id string 否
status string 否
tenant_id string 否
user_id string 否