Files
2025-11-18 03:36:49 +08:00

753 B
Raw Permalink Blame History

PriceService

价格相关服务


calculatePrice

计算费用

  • 角色:admin, user
  • HTTPPOST https://backend.dooki.cloud/PriceService/calculatePrice
  • RPCrpc calculatePrice(CalculatePriceRequest) returns (CalculatePriceResponse);

请求对象 (CalculatePriceRequest)

{
  "priceType": "string",
  "trafficGB": "double",
  "bandwidthMB": "double",
  "nodeRegionId": "int64"
}

响应对象 (CalculatePriceResponse)

{
  "amount": "double",
  "hasNodeRegionPrice": "bool"
}

调用示例

curl -X POST "https://backend.dooki.cloud/PriceService/calculatePrice" \
  -H "Content-Type: application/json" \
  -H "X-Edge-Access-Token: <YOUR_TOKEN>" \
  -d '{
    ...
  }'