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

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

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