校招平台

福州大学校招平台


获取用户头像及用户名

<p><strong>1. 简要描述:</strong></p> <ul> <li>获取简历模板。</li> </ul> <p><strong>2. 请求URL:</strong></p> <ul> <li><code>http://HOST/chat/getuserinfo?token=#{toke}&amp;userId=#{userId}&amp;requestType=#{requestType}&amp;wantType=#{wantType}</code></li> </ul> <p><strong>3. 请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>4. UI应显示的内容:</strong></p> <ul> <li>返回的头像url及用户名应在UI展示。</li> </ul> <p><strong>5. 请求应携带的参数:</strong></p> <ul> <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>String</td> <td></td> <td>必填</td> </tr> <tr> <td>用户id</td> <td>userId</td> <td>String</td> <td></td> <td>必填</td> </tr> <tr> <td>请求用户类型</td> <td>requestType</td> <td>int</td> <td></td> <td>必填 (0为企业,1为用户)</td> </tr> <tr> <td>希望得到的数据的用户类型</td> <td>wantType</td> <td>int</td> <td></td> <td>必填(0为企业,1为用户)</td> </tr> </tbody> </table> <p><strong>6. 请求示例:</strong></p> <pre><code>请求URL:http://HOST/chat/getuserinfo?token=dfs&amp;userId=dsf&amp;requestType=#0&amp;wantType=1 根据文件名拼接图片URL,那么获取相应图片的URL为:HOST+"file/"+fileName: e.g: 文件名为test.jpg,URL: http://101.132.142.40:8080/XZPT-Java-1.0-SNAPSHOT/file/test.jpg </code></pre> <p><strong>7. 返回结果:</strong></p> <ul> <li>如果请求失败,只返回错误信息及错误代码。</li> <li>如果请求成功,返回的resultObject中携带List<ChatDTO>实例。</li> <li>返回描述见“返回结果解释”。</li> </ul>

页面列表

ITEM_HTML