/internal/tenant/api-keys/validate
供 gateway 内部调用,验证 API Key 合法性并返回租户信息
请求体
Schema: service-tenant/internal/handler/dto.InternalValidateApiKeyRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
api_key |
string |
是 |
响应
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
service-tenant/internal/handler/dto.InternalValidateApiKeyResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
name |
string |
否 | |||
scope |
string |
否 | |||
tenant_id |
string |
否 | |||
valid |
boolean |
否 |