POST /internal/billing/apps/{tenant_id}/{app_id}/billing-event
服务间内部调用:处理应用维度的计费事件(suspend 暂停计费/resume 恢复计费/delete 删除计费),由 tenant-service 在应用生命周期变更时调用
计费服务 - 内部接口 None application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
tenant_id |
path |
string |
Yes |
|
|
|
租户ID |
app_id |
path |
string |
Yes |
|
|
|
应用ID |
Request Body
Schema: dto.AppBillingEventRequest
| Field | Type | Required | Example | Constraints | Description |
action |
string |
Yes |
suspend |
|
suspend/resume/delete |
Responses
| Status | Description | Schema |
| 200 | 计费事件处理成功 | object |
| 400 | 请求参数错误 | object |
| 401 | 未授权 | object |
| 500 | 服务器内部错误 | object |