校招平台

福州大学校招平台


α用户登录

<p><strong>1. 简要描述:</strong> </p> <ul> <li>用户登录接口(使用账户密码)</li> </ul> <p><strong>2. 请求URL:</strong> </p> <ul> <li><code>http://HOST/user/login/</code></li> </ul> <p><strong>3. 请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>4. UI应显示的内容:</strong></p> <ul> <li>理论上,以下参数为必填且客户端必须判断。</li> </ul> <table> <thead> <tr> <th>数据别称</th> <th>数据名</th> <th>数据类型</th> <th>数据长度</th> <th>备注</th> </tr> </thead> <tbody> <tr> <td>邮箱</td> <td>email</td> <td>char</td> <td>320</td> <td>必填</td> </tr> <tr> <td>密码</td> <td>passwd</td> <td>char</td> <td>128</td> <td>必填</td> </tr> </tbody> </table> <p><strong>5. 请求应携带的参数:</strong></p> <ul> <li>只需要携带UI中的参数即可</li> <li> <p>全部信息都携带在JSONObject中,因为把当前用户看成了User实例</p> <p><strong>请求示例</strong></p> </li> </ul> <pre><code>请求URL:http://HOST/user/login/ 请求的JSONObject: { "email":"1732626355@qq.com", "passwd":"passwd" // 只有这两项,没有其他项 } //这边使用JSONObject传是因为把登录的想象成了对象。 // 前端直接new User(),然后设置账号密码,直接把这个对象转JSONObject传过来就OK</code></pre> <p><strong>7. 返回结果:</strong></p> <ul> <li>本例中,如果无误,&quot;resultObject&quot;字段携带token。</li> <li>返回描述见“返回结果解释”。</li> </ul>

页面列表

ITEM_HTML