POST /internal/identity/bootstrap-admin

内部API:为指定用户分配或创建 admin 角色,仅限 development 环境(生产禁用)。需InternalAPIKeyAuth认证。

RBAC - 权限 None application/json

请求体

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

字段类型必填示例约束描述
user_id string 是

响应

引用的 Schema

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

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

service-core/base/dto.SimpleResponse

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

service-identity/internal/handler/dto.BootstrapAdminResponse

字段类型必填示例约束描述
message string 否
role_id string 否