GET /credits/history
返回当前认证用户的积分流水,包含购买、消耗与退款等。需要 JWT 访问令牌(会话鉴权)。**第三方集成:**请改用
GET /credits/history/api 并以 API Key 鉴权。查询参数
number
默认值:"20"
返回条数(最大 100)。
number
默认值:"0"
分页偏移(跳过的条数)。
string
按类型筛选:
purchase、usage 或 refund。响应
array
流水对象数组。
number
符合条件的流水总数。
boolean
是否还有更多记录。
GET /credits/history/api
使用 API Key 返回积分流水,适合第三方集成。认证
需要 API Key,在Authorization 请求头中携带:
查询参数
与/credits/history 相同。
响应
与/credits/history 相同。