Commit 6efa1b6b9f040097c84a0b0a8a03f4583a1987a9
1 parent
15b58123
add 读取和减少热力值
Showing
2 changed files
with
111 additions
and
0 deletions
05.互动云/12.1 读取用户当前热力值.md
0 → 100644
| 1 | +/* | |
| 2 | + Title: 12.1 读取用户当前热力值 | |
| 3 | + Sort: 118 | |
| 4 | +*/ | |
| 5 | +#### 请求方式: POST | |
| 6 | +----- | |
| 7 | +#### 返回格式: JSON | |
| 8 | +----- | |
| 9 | +#### 请求参数说明: | |
| 10 | +<table class="table table-bordered table-striped table-condensed"> | |
| 11 | + <tr> | |
| 12 | + <th>参数</th> | |
| 13 | + <th>必选</th> | |
| 14 | + <th>类型</th> | |
| 15 | + <th>说明</th> | |
| 16 | + </tr> | |
| 17 | + <tr> | |
| 18 | + <td>spId</td> | |
| 19 | + <td>true</td> | |
| 20 | + <td>string</td> | |
| 21 | + <td>应用ID</td> | |
| 22 | + </tr> | |
| 23 | + <tr> | |
| 24 | + <td>sid</td> | |
| 25 | + <td>true</td> | |
| 26 | + <td>string</td> | |
| 27 | + <td>用户ID</td> | |
| 28 | + </tr> | |
| 29 | + <tr> | |
| 30 | + <td>userToken</td> | |
| 31 | + <td>true</td> | |
| 32 | + <td>string</td> | |
| 33 | + <td>用户token</td> | |
| 34 | + </tr> | |
| 35 | +</table> | |
| 36 | +----- | |
| 37 | +#### 返回格式说明: | |
| 38 | +``` | |
| 39 | +{ | |
| 40 | + "errorCode":"0", | |
| 41 | + "errorMessage":"success" | |
| 42 | + "data":"183" | |
| 43 | +} | |
| 44 | +{ | |
| 45 | + "errorCode":"101", | |
| 46 | + "errorMessage":"参数格式错误" | |
| 47 | +} | |
| 48 | +{ | |
| 49 | + errorCode:"xxx", //错误代码(非0) | |
| 50 | + errorMsg:"失败" //错误信息 | |
| 51 | +} | |
| 0 | 52 | \ No newline at end of file | ... | ... |
05.互动云/12.2 热力值兑商品.md
0 → 100644
| 1 | +/* | |
| 2 | + Title: 12.2 热力值兑商品 | |
| 3 | + Sort: 118 | |
| 4 | +*/ | |
| 5 | +#### 请求方式: POST | |
| 6 | +----- | |
| 7 | +#### 返回格式: JSON | |
| 8 | +----- | |
| 9 | +#### 请求参数说明: | |
| 10 | +<table class="table table-bordered table-striped table-condensed"> | |
| 11 | + <tr> | |
| 12 | + <th>参数</th> | |
| 13 | + <th>必选</th> | |
| 14 | + <th>类型</th> | |
| 15 | + <th>说明</th> | |
| 16 | + </tr> | |
| 17 | + <tr> | |
| 18 | + <td>spId</td> | |
| 19 | + <td>true</td> | |
| 20 | + <td>string</td> | |
| 21 | + <td>应用ID</td> | |
| 22 | + </tr> | |
| 23 | + <tr> | |
| 24 | + <td>sid</td> | |
| 25 | + <td>true</td> | |
| 26 | + <td>string</td> | |
| 27 | + <td>用户ID</td> | |
| 28 | + </tr> | |
| 29 | + <tr> | |
| 30 | + <td>userToken</td> | |
| 31 | + <td>true</td> | |
| 32 | + <td>string</td> | |
| 33 | + <td>用户token</td> | |
| 34 | + </tr> | |
| 35 | + <tr> | |
| 36 | + <td>power</td> | |
| 37 | + <td>true</td> | |
| 38 | + <td>int</td> | |
| 39 | + <td>热力值</td> | |
| 40 | + </tr> | |
| 41 | +</table> | |
| 42 | +----- | |
| 43 | +#### 返回格式说明: | |
| 44 | +``` | |
| 45 | +{ | |
| 46 | + "errorCode":"0", | |
| 47 | + "errorMessage":"success" | |
| 48 | +} | |
| 49 | +{ | |
| 50 | + "errorCode":"101", | |
| 51 | + "errorMessage":"参数格式错误" | |
| 52 | +} | |
| 53 | +{ | |
| 54 | + "errorCode":"51005", | |
| 55 | + "errorMessage":"用户不存在" | |
| 56 | +} | |
| 57 | +{ | |
| 58 | + errorCode:"xxx", //错误代码(非0) | |
| 59 | + errorMsg:"失败" //错误信息 | |
| 60 | +} | |
| 0 | 61 | \ No newline at end of file | ... | ... |