Showing
1 changed file
with
40 additions
and
0 deletions
获取老师红包.md
0 → 100644
1 | +### [上一级](老师红包) | ||
2 | + | ||
3 | +*** | ||
4 | + | ||
5 | +#### 接口说明 | ||
6 | + | ||
7 | ++ 请求地址 | ||
8 | +`/api/teacher/has_red_envelopes/user/{user_id}` | ||
9 | ++ 请求方式 | ||
10 | +`GET` | ||
11 | + | ||
12 | ++ 请求参数 | ||
13 | +`无` | ||
14 | + | ||
15 | ++ 返回数据 | ||
16 | +```json | ||
17 | +{ | ||
18 | + "data": { | ||
19 | + "contents": [ | ||
20 | + { | ||
21 | + "id": 7, | ||
22 | + "name": "对产品不够有信息" | ||
23 | + }, | ||
24 | + { | ||
25 | + "id": 8, | ||
26 | + "name": "不愿做出头鸟" | ||
27 | + } | ||
28 | + ], | ||
29 | + "name": "可以进一步了解", | ||
30 | + "id": 3 | ||
31 | + } | ||
32 | +} | ||
33 | +``` | ||
34 | ++ 无数据时返回 | ||
35 | +```json | ||
36 | +{ | ||
37 | + "message": "没有红包记录!", | ||
38 | + "code": "not_found" | ||
39 | +} | ||
40 | +``` |
-
Please register or login to post a comment