Showing
1 changed file
with
29 additions
and
0 deletions
记录老师发放盒子情况.md
0 → 100644
1 | +### [上一级](老师盒子) | ||
2 | + | ||
3 | +*** | ||
4 | + | ||
5 | +#### 接口说明 | ||
6 | + | ||
7 | ++ 请求地址 | ||
8 | +`/api/teacher/has_box/user/{user_id}` | ||
9 | ++ 请求方式 | ||
10 | +`POST` | ||
11 | + | ||
12 | ++ 请求参数 | ||
13 | +`无` | ||
14 | + | ||
15 | ++ 返回数据 | ||
16 | +`http状态码200` | ||
17 | +```json | ||
18 | +{ | ||
19 | + "message": "success" | ||
20 | +} | ||
21 | +``` | ||
22 | ++ 重复发放时返回 | ||
23 | +`http状态码409` | ||
24 | +```json | ||
25 | +{ | ||
26 | + "message": "已经给id为[2]的用户发过盒子了!", | ||
27 | + "code": "duplicated" | ||
28 | +} | ||
29 | +``` |
-
Please register or login to post a comment