GET /points/{user_id}/value
根据积分类型和兑换比率计算当前余额对应的现金价值。cash_value = balance / exchange_rate。仅 cash_equivalent 类型可兑换。
积分服务 `bearerAuth` application/json
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
user_id |
path |
string |
是 |
|
|
|
用户ID |
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
code |
integer |
否 |
|
|
|
message |
string |
否 |
|
|
|
timestamp |
string |
否 |
|
|
|
service-point/internal/handler/dto.PointValueResponse
service-point/internal/handler/dto.PointValueResult
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
balance |
integer |
否 |
5000 |
|
|
cash_value |
string |
否 |
50 |
|
|
exchange_rate |
integer |
否 |
100 |
|
|
points_type |
string |
否 |
cash_equivalent |
|
|
user_id |
string |
否 |
user-001 |
|
|