查询用户详细
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>查询用户详细</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://localhost/dev-api/system/user/</code>+userId</li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET</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;">userId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户ID</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
"msg": "操作成功",
"code": 200,
"roles": [
{
"searchValue": null,
"createBy": null,
"createTime": "2022-09-07 17:17:42",
"updateBy": null,
"updateTime": null,
"remark": "普通角色",
"params": {},
"roleId": 2,
"roleName": "普通角色",
"roleKey": "common",
"roleSort": "2",
"dataScope": "2",
"menuCheckStrictly": true,
"deptCheckStrictly": true,
"status": "0",
"delFlag": "0",
"flag": false,
"menuIds": null,
"deptIds": null,
"admin": false
}
],
"posts": [
{
"searchValue": null,
"createBy": "admin",
"createTime": "2022-09-07 17:17:42",
"updateBy": null,
"updateTime": null,
"remark": "",
"params": {},
"postId": 1,
"postCode": "ceo",
"postName": "董事长",
"postSort": "1",
"status": "0",
"flag": false
},
{
"searchValue": null,
"createBy": "admin",
"createTime": "2022-09-07 17:17:42",
"updateBy": null,
"updateTime": null,
"remark": "",
"params": {},
"postId": 2,
"postCode": "se",
"postName": "项目经理",
"postSort": "2",
"status": "0",
"flag": false
},
{
"searchValue": null,
"createBy": "admin",
"createTime": "2022-09-07 17:17:42",
"updateBy": null,
"updateTime": null,
"remark": "",
"params": {},
"postId": 3,
"postCode": "hr",
"postName": "人力资源",
"postSort": "3",
"status": "0",
"flag": false
},
{
"searchValue": null,
"createBy": "admin",
"createTime": "2022-09-07 17:17:42",
"updateBy": null,
"updateTime": null,
"remark": "",
"params": {},
"postId": 4,
"postCode": "user",
"postName": "普通员工",
"postSort": "4",
"status": "0",
"flag": false
}
]
}
</code></pre>