BLOG API

博客开发的 API 接口


获取用户信息

<p>简要描述:</p> <ul> <li>用户信息获取接口</li> </ul> <p>请求 URL:</p> <ul> <li><code>/my/userinfo</code></li> </ul> <p>请求方式:</p> <ul> <li><code>GET</code></li> </ul> <p>请求头:</p> <pre><code class="language-json">Authorization : Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NSwidXNlcm5hbWUiOiJhZG1pbjEyMyIsInBhc3N3b3JkIjoiIiwibmlja19uYW1lIjpudWxsLCJlbWFpbCI6IjEyMzQ1NkBxcS5jb20iLCJwaWNfbmFtZSI6IiIsInJlZ19kYXRlIjoiMjAyMi0xMS0yMCAxMzo1NDo1NCIsInN0YXR1cyI6MCwiaWF0IjoxNjY4OTI3MDA5LCJleHAiOjE2NzI1MjM0MDl9.nB9ywvSdTzEYuuNlqMw_8YudjUmGesPfSRaRi-NKP2x</code></pre> <p>返回示例:</p> <pre><code class="language-json">{     "status": 0,     "msg": "用户信息获取成功!",     "data": {         "id": 1,         "username": "admin666",         "nick_name": null,         "pic_name": null,         "email_name": "666666@qq.com",         "user_describe": null,         "userupdate_time": null     } }</code></pre> <p>返回参数说明:</p> <table> <thead> <tr> <th style="text-align: center;">参数名</th> <th style="text-align: center;">类型</th> <th style="text-align: center;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: center;">status</td> <td style="text-align: center;">int</td> <td style="text-align: center;">(0:请求成功)(1: 请求失败)</td> </tr> <tr> <td style="text-align: center;">msg</td> <td style="text-align: center;">string</td> <td style="text-align: center;">请求结果的描述消息</td> </tr> <tr> <td style="text-align: center;">data</td> <td style="text-align: center;">object</td> <td style="text-align: center;">用户信息</td> </tr> <tr> <td style="text-align: center;">id</td> <td style="text-align: center;">int</td> <td style="text-align: center;">用户的 ID</td> </tr> <tr> <td style="text-align: center;">username</td> <td style="text-align: center;">string</td> <td style="text-align: center;">用户名</td> </tr> <tr> <td style="text-align: center;">nick_name</td> <td style="text-align: center;">string</td> <td style="text-align: center;">昵称</td> </tr> <tr> <td style="text-align: center;">pic_name</td> <td style="text-align: center;">string</td> <td style="text-align: center;">头像</td> </tr> <tr> <td style="text-align: center;">email_name</td> <td style="text-align: center;">string</td> <td style="text-align: center;">邮箱</td> </tr> <tr> <td style="text-align: center;">user_describe</td> <td style="text-align: center;">string</td> <td style="text-align: center;">描述信息</td> </tr> <tr> <td style="text-align: center;">userupdate_time</td> <td style="text-align: center;">string</td> <td style="text-align: center;">修改信息的最后一次时间</td> </tr> </tbody> </table>

页面列表

ITEM_HTML