POST /internal/identity/bootstrap-admin
内部API:为指定用户分配或创建 admin 角色,仅限 development 环境(生产禁用)。需InternalAPIKeyAuth认证。
RBAC - 权限 None application/json
引用的 Schema
service-core/base/dto.DataResponse-service-identity/internal/handler/dto/BootstrapAdminResponse
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
code |
integer |
否 |
|
|
|
message |
string |
否 |
|
|
|
timestamp |
string |
否 |
|
|
|
service-identity/internal/handler/dto.BootstrapAdminResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
message |
string |
否 |
|
|
|
role_id |
string |
否 |
|
|
|