Appearance
获取用户积分
1 接口名称
获取用户积分
2 接口描述
- 无
3 请求地址
Plain
{apiAddress}/user/getUserCredit
4 请求方式
GET
5 请求参数
5.1 Header 参数
参数名 | 必选 | 类型/参数值 | 说明 |
---|---|---|---|
Content-Type | 是 | application/json | 请求参数类型 |
5.2 Query 参数
json
userId: 1 // 用户ID
6 返回示例
JSON
{
"message": "success",
"code": 0,
"success": true,
"data": {
"grade": 0, // 等级
"exp": 0, // 经验
"credits": 0 // 积分
}
}