001数据平台

大数据数据平台


后台登陆接口

<h5>简要描述</h5> <ul> <li>登陆接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://xx.com/api/admin/login</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>Authorization header</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">参数值</th> <th style="text-align: left;">类型</th> </tr> </thead> <tbody> </tbody> </table> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">name</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>用户名</td> </tr> <tr> <td style="text-align: left;">password</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>密码</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code>{     &amp;quot;code&amp;quot;: 200,     &amp;quot;message&amp;quot;: &amp;quot;成功&amp;quot;,     &amp;quot;data&amp;quot;: {         &amp;quot;id&amp;quot;: 3,         &amp;quot;name&amp;quot;: &amp;quot;admin&amp;quot;,         &amp;quot;email&amp;quot;: &amp;quot;944481698@qq.com&amp;quot;,         &amp;quot;user_name&amp;quot;: &amp;quot;admin&amp;quot;,         &amp;quot;access_token&amp;quot;: &amp;quot;eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9hcGkubG9jYWxob3N0XC9hcGlcL2FkbWluXC9sb2dpbiIsImlhdCI6MTY4NTk0ODk1NCwiZXhwIjoxNjg1OTg0OTU0LCJuYmYiOjE2ODU5NDg5NTQsImp0aSI6Ik8wdVBwdVd2RTBORlNYVEoiLCJzdWIiOjMsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.ngzQWP1mTCgEnwxERWKPuL_5Ch0gcbOgInIkpG0xc18&amp;quot;,         &amp;quot;token_type&amp;quot;: &amp;quot;Bearer&amp;quot;,         &amp;quot;expires_in&amp;quot;: 36000     } }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">code</td> <td style="text-align: left;">int</td> <td>状态码</td> </tr> <tr> <td style="text-align: left;">message</td> <td style="text-align: left;">string</td> <td>消息提示</td> </tr> <tr> <td style="text-align: left;">user_name</td> <td style="text-align: left;">string</td> <td>用户名</td> </tr> <tr> <td style="text-align: left;">access_token</td> <td style="text-align: left;">string</td> <td>token</td> </tr> <tr> <td style="text-align: left;">token_type</td> <td style="text-align: left;">string</td> <td>token类型</td> </tr> <tr> <td style="text-align: left;">expires_in</td> <td style="text-align: left;">number</td> <td>过期时间</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML