校招平台

福州大学校招平台


α查看用户信息

<p><strong>1. 简要描述:</strong></p> <ul> <li>根据Token查看用户信息。</li> <li>此接口主要应用在已填写信息要修改信息时,通过此接口获取服务器之前保存的用户信息。</li> <li><strong>注意:因为前端个人信息已经画在了好几个页面,在获取本接口提供的User对象时只需要填充需要的的内容到指定位置即可,多获取的信息不用理会。</strong></li> </ul> <p><strong>2. 请求URL:</strong> </p> <ul> <li><code>http://HOST/user/getuserbytoken?token=#{token}</code></li> </ul> <p><strong>3. 请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>4. UI应显示的内容:</strong></p> <ul> <li>在获取了数据之后,应当在当前界面填充“注册用户接口”中类似的信息。因为前端分成多个页面展示,就按目前方案也是OK的。</li> </ul> <p><strong>5. 请求应携带的参数:</strong></p> <ul> <li>请求只需要携带token。</li> <li>所有信息都携带在URL中。</li> </ul> <table> <thead> <tr> <th>数据别称</th> <th>数据名</th> <th>数据类型</th> <th>数据长度</th> <th>备注</th> </tr> </thead> <tbody> <tr> <td>Token</td> <td>token</td> <td>char</td> <td>255</td> <td>必填</td> </tr> </tbody> </table> <p><strong>6. 请求示例:</strong></p> <pre><code>请求URL:http://HOST/user/getuserbytoken?token=jlksdfjlkdsfjdfslkdsf </code></pre> <p><strong>7. 返回结果:</strong></p> <ul> <li>本例中,如果失败,返回错误码及消息。如果成功,&quot;resultObject&quot;中User实例的JSONObject。</li> <li>返回描述见“返回结果解释”。</li> </ul>

页面列表

ITEM_HTML