POST /internal/billing/quota/check

服务间内部调用:检查租户资源配额是否超出限制(如用户数、存储、API调用),供其他微服务在资源操作前进行配额校验

计费服务 - 内部接口 None application/json

请求体

Schema: service-billing/internal/handler/dto.QuotaCheckInternalRequest

字段类型必填示例约束描述
requested_amount integer 是 100
resource_type string 是 api_calls
app_id string 否 app_001

响应

状态描述Schema
200配额检查成功service-billing/internal/handler/dto.QuotaCheckDetailResponse
400请求参数错误object
401未授权object
500服务器内部错误object

引用的 Schema

service-billing/internal/handler/dto.QuotaCheckDetailResponse

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

service-billing/internal/handler/dto.QuotaCheckResponse

字段类型必填示例约束描述
allowed boolean 否 True
current integer 否 5000
limit integer 否 10000
message string 否
remaining integer 否 5000
resource_type string 否 api_calls