GET /internal/tenant/{tenant_id}/check-quota
检查指定租户当前资源使用是否超过配额限制
租户服务 None application/json
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
tenant_id |
path |
string |
是 |
|
|
|
租户ID |
resource_type |
query |
string |
是 |
|
|
|
资源类型 |
requested |
query |
integer |
否 |
|
|
|
请求数量 |
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
code |
integer |
否 |
|
|
|
message |
string |
否 |
|
|
|
timestamp |
string |
否 |
|
|
|
service-tenant/internal/handler/dto.CheckQuotaResponse
配额检查结果
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
allowed |
boolean |
否 |
True |
|
是否允许 |
current_usage |
integer |
否 |
45 |
|
当前使用量 |
limit |
integer |
否 |
100 |
|
上限 |
message |
string |
否 |
配额充足 |
|
消息 |