旅游app后台

后台api接口


登录

<h5>简要描述</h5> <ul> <li>登录</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://api.9lele.com/public/index.php/api/user/login</code></li> </ul> <h5>请求方式</h5> <ul> <li>post</li> </ul> <h5>Header</h5> <table> <thead> <tr> <th>header</th> <th>示例值</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>Token</td> <td>be4c4de6-6ed4-4d79-9678-f75ac6c6c6af</td> <td>是</td> <td>string</td> <td>登录成功后获取的token</td> </tr> </tbody> </table> <h5>请求Body参数</h5> <table> <thead> <tr> <th>参数名</th> <th>示例值</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>account</td> <td>Excalibur</td> <td>是</td> <td>string</td> <td>用户名</td> </tr> <tr> <td>password</td> <td>Excalibur</td> <td>是</td> <td>string</td> <td>密码</td> </tr> </tbody> </table> <h5>成功返回示例</h5> <pre><code>{ &amp;quot;code&amp;quot;: 1, &amp;quot;msg&amp;quot;: &amp;quot;登录成功&amp;quot;, &amp;quot;time&amp;quot;: &amp;quot;1714176281&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;userinfo&amp;quot;: { &amp;quot;id&amp;quot;: 37, &amp;quot;username&amp;quot;: &amp;quot;Excalibur&amp;quot;, &amp;quot;nickname&amp;quot;: &amp;quot;Excalibur&amp;quot;, &amp;quot;mobile&amp;quot;: &amp;quot;18636591111&amp;quot;, &amp;quot;avatar&amp;quot;: &amp;quot;data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgaGVpZ2h0PSIxMDAiIHdpZHRoPSIxMDAiPjxyZWN0IGZpbGw9InJnYigxNjAsMjI5LDE4OSkiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48L3JlY3Q+PHRleHQgeD0iNTAiIHk9IjUwIiBmb250LXNpemU9IjUwIiB0ZXh0LWNvcHk9ImZhc3QiIGZpbGw9IiNmZmZmZmYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHRleHQtcmlnaHRzPSJhZG1pbiIgZG9taW5hbnQtYmFzZWxpbmU9ImNlbnRyYWwiPkU8L3RleHQ+PC9zdmc+&amp;quot;, &amp;quot;score&amp;quot;: 0, &amp;quot;token&amp;quot;: &amp;quot;be4c4de6-6ed4-4d79-9678-f75ac6c6c6af&amp;quot;, &amp;quot;user_id&amp;quot;: 37, &amp;quot;createtime&amp;quot;: 1714176281, &amp;quot;expiretime&amp;quot;: 1716768281, &amp;quot;expires_in&amp;quot;: 2592000 } } }</code></pre>

页面列表

ITEM_HTML