dream

dream


登录

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>登录接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>/login</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <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;">loginName</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> <tr> <td style="text-align: left;">loginType</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>平台类型 P平台、S商户</td> </tr> </tbody> </table> <h5>请求示例</h5> <pre><code>{ &amp;quot;loginName&amp;quot;:&amp;quot;15921279199&amp;quot;, &amp;quot;password&amp;quot;:&amp;quot;123456&amp;quot;, &amp;quot;loginType&amp;quot;:&amp;quot;S&amp;quot; }</code></pre> <h5>返回示例</h5> <pre><code> {     &amp;quot;code&amp;quot;: &amp;quot;0&amp;quot;,     &amp;quot;msg&amp;quot;: &amp;quot;Success&amp;quot;,     &amp;quot;data&amp;quot;: {         &amp;quot;accessToken&amp;quot;: &amp;quot;eyJraWQiOiIxIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiLnrb7lj5HogIVkcmVhbSIsImV4cCI6MTY3ODMzOTIzOH0.fhOQGtcqRy-Qd-wca9GHy38YiPeCuTnTv0dRt79DbA1lkvtJm2GB4RWOnZS2R8MxwOYnvWtI03fsRsQ-5DxVfclq4CAoCJMT9lchKKXOu8aUihUppj9i8N2f6F4x-4IC35wbccVyt2iYUUombM7-nbZrhOxpiZUx2_5sJAb2dd0&amp;quot;,         &amp;quot;refreshToken&amp;quot;: &amp;quot;eyJraWQiOiIxIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiLnrb7lj5HogIVkcmVhbSIsImV4cCI6MTY4MDkyNDAzOH0.fTIn1n5kfvlpc5dhrlsyi5aijyQxAA3w8a1lVH9_kAqOF2ofWE13cgUsLnBXbOqwOfsX3UC2ghWaiklGD57DZCb4rvyffgIqHZweyQQem0lIOmmLWgynmHj6oNzzD5EfO-esZjGVbHuId4agUwT_lRJPrGg63A-gp2dA8H25NGQ&amp;quot;     } }</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;">accessToken</td> <td style="text-align: left;">string</td> <td>token</td> </tr> <tr> <td style="text-align: left;">refreshToken</td> <td style="text-align: left;">string</td> <td>refreshToken</td> </tr> </tbody> </table> <h5>备注</h5> <p>接口请求以后放到header里面 token 和refreshToken</p>

页面列表

ITEM_HTML