A AuthMS API Wiki API Reference iam.tianv.com →

GET /points/{user_id}/stats

获取用户积分账户的综合统计数据:当前余额、总获得/消费/过期、本月数据、30天内即将过期积分。

积分服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
user_id path string Yes 用户ID

Responses

StatusDescriptionSchema
200积分统计数据dto.PointStatsDetailResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证gitee_com_linmes_authms_base_dto.SimpleResponse
404用户不存在gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.PointStatsDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.PointStatsResponse No
message string No
timestamp string No

dto.PointStatsResponse

FieldTypeRequiredExampleConstraintsDescription
current_balance integer No 1500
earned_this_month integer No 200
expiring_soon integer No 500
spent_this_month integer No 150
total_earned integer No 5000
total_expired integer No 100
total_spent integer No 3500
user_id string No usr_example_001

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No