Showing
1 changed file
with
75 additions
and
1 deletions
@@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
9 | 9 | ||
10 | # 登录接口 | 10 | # 登录接口 |
11 | 11 | ||
12 | -## 参数 | 12 | +## 请求参数 |
13 | <table> | 13 | <table> |
14 | <tr> | 14 | <tr> |
15 | <td>参数名</td> <td>参数说明</td> | 15 | <td>参数名</td> <td>参数说明</td> |
@@ -46,6 +46,80 @@ | @@ -46,6 +46,80 @@ | ||
46 | } | 46 | } |
47 | ``` | 47 | ``` |
48 | 48 | ||
49 | +token信息需要写入HTTP请求的header中, header name为 `auth_fish_token` . | ||
50 | + | ||
51 | + | ||
52 | +# 查询教师VIP权限信息 | ||
53 | + | ||
54 | +## 请求参数 | ||
55 | +<table> | ||
56 | + <tr> | ||
57 | + <td>参数名称</td> <td>参数说明</td> | ||
58 | + </tr> | ||
59 | + <tr> | ||
60 | + <td>username</td> <td>教师注册名(注册邮箱)</td> | ||
61 | + </tr> | ||
62 | +</table> | ||
63 | + | ||
64 | +## 请求方式 | ||
65 | +`HTTP GET` | ||
66 | + | ||
67 | + | ||
68 | +## 返回值 | ||
69 | + | ||
70 | +未开通权限返回值 | ||
71 | +``` | ||
72 | +{ | ||
73 | + "code": 0, | ||
74 | + "message": "成功", | ||
75 | + "tokenInvalidTime": "2016-05-24 01:36:26", | ||
76 | + "data": { | ||
77 | + "userId": -110, | ||
78 | + "username": "test2016110", | ||
79 | + "email": null, | ||
80 | + "schoolId": null, | ||
81 | + "school": null, | ||
82 | + "vip": null, | ||
83 | + "tips": null, | ||
84 | + "userExtraId": null, | ||
85 | + "namespaceHasUserId": null, | ||
86 | + "studentAccountId": 10111, | ||
87 | + "studentUsername": "allstar10111", | ||
88 | + "password": "558845", | ||
89 | + "deadAccount": "AUTH_FISH_GEN", | ||
90 | + "studentAccountMessage": "AUTH_FISH_GEN" | ||
91 | + } | ||
92 | +} | ||
93 | +``` | ||
94 | + | ||
95 | + | ||
96 | +开通权限返回值 | ||
97 | +``` | ||
98 | +{ | ||
99 | + "code": 106, | ||
100 | + "message": "用户已拥有VIP权限", | ||
101 | + "tokenInvalidTime": "2016-05-24 01:34:49", | ||
102 | + "data": { | ||
103 | + "userId": -110, | ||
104 | + "username": "test2016110", | ||
105 | + "email": null, | ||
106 | + "schoolId": null, | ||
107 | + "school": "盒子鱼开发测试初级中学", | ||
108 | + "vip": null, | ||
109 | + "tips": null, | ||
110 | + "userExtraId": 45015, | ||
111 | + "namespaceHasUserId": 434594, | ||
112 | + "studentAccountId": 10111, | ||
113 | + "studentUsername": "allstar10111", | ||
114 | + "password": "558845", | ||
115 | + "deadAccount": "AUTH_FISH_GEN", | ||
116 | + "studentAccountMessage": "AUTH_FISH_GEN" | ||
117 | + } | ||
118 | +} | ||
119 | +``` | ||
120 | + | ||
121 | + | ||
122 | + | ||
49 | 123 | ||
50 | 124 | ||
51 | 125 |
-
Please register or login to post a comment