增加用户统计信息接口的文档
This commit is contained in:
parent
80df32f693
commit
3647d9c4b3
57
doc/api.md
57
doc/api.md
@ -327,3 +327,60 @@
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### 9. 用户统计信息
|
||||
|
||||
1. Method: POST
|
||||
2. URI: /api/:accountid/stats
|
||||
|
||||
| 字段 | 说明 |
|
||||
| -------- | -------------------------------------- |
|
||||
| accountid | 帐号id |
|
||||
|
||||
|
||||
|
||||
3. Response: JSON
|
||||
|
||||
```js
|
||||
{
|
||||
"map": [ //能力地图数据
|
||||
{
|
||||
"id": 0,
|
||||
"name": "知识面", // 显示的文字
|
||||
"score": 6, // 分值
|
||||
"max": 20 // 该项最大分值
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "知识深度",
|
||||
"score": 11,
|
||||
"max": 20
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "反应能力",
|
||||
"score": 15,
|
||||
"max": 20
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "毅力",
|
||||
"score": 14,
|
||||
"max": 20
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"name": "其他",
|
||||
"score": 2,
|
||||
"max": 20
|
||||
}
|
||||
],
|
||||
"rightCount": 100, // 总的答对的题目数量
|
||||
"errorCount": 100, // 总的答错的题目数量
|
||||
"singleCount": 20, // 单人模式参与局数
|
||||
"singleWin": 15, // 单人模式胜利局数
|
||||
"singleLose": 5, // 单人模式失败局数
|
||||
"activityCount": 20, // 参与活动数量
|
||||
"examCount": 21 // 参与挑战数量
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user