/internal/billing/apps/{tenant_id}/{app_id}/billing-event
服务间内部调用:处理应用维度的计费事件(suspend 暂停计费/resume 恢复计费/delete 删除计费),由 tenant-service 在应用生命周期变更时调用
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|---|---|
tenant_id |
path |
string |
是 | 租户ID | |||
app_id |
path |
string |
是 | 应用ID |
请求体
Schema: service-billing/internal/handler/dto.AppBillingEventRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
action |
string |
是 | suspend |
suspend/resume/delete |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 计费事件处理成功 | object |
| 400 | 请求参数错误 | object |
| 401 | 未授权 | object |
| 500 | 服务器内部错误 | object |