角色列表
<h5>简要描述</h5>
<ul>
<li>角色列表的接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://192.168.1.79/api/role</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>get</li>
</ul>
<h5>Header</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">字段名</th>
<th style="text-align: left;">示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">token</td>
<td style="text-align: left;"></td>
<td>否</td>
<td>string</td>
<td>设备token</td>
</tr>
</tbody>
</table>
<h5>请求Query参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;"></td>
<td>否</td>
<td>string</td>
<td>角色名称</td>
</tr>
<tr>
<td style="text-align: left;">page_size</td>
<td style="text-align: left;"></td>
<td>否</td>
<td>string</td>
<td>分页条数</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;&quot;,
&quot;data&quot;: {
&quot;list&quot;: [
{
&quot;id&quot;: 1,
&quot;customer_id&quot;: 1,
&quot;name&quot;: &quot;运营&quot;,
&quot;created_at&quot;: &quot;2025-02-15T02:57:48.000000Z&quot;,
&quot;updated_at&quot;: &quot;2025-02-15T02:57:50.000000Z&quot;,
&quot;deleted_at&quot;: null
},
{
&quot;id&quot;: 3,
&quot;customer_id&quot;: 1,
&quot;name&quot;: &quot;财务&quot;,
&quot;created_at&quot;: &quot;2025-02-26T16:45:37.000000Z&quot;,
&quot;updated_at&quot;: &quot;2025-02-26T16:45:37.000000Z&quot;,
&quot;deleted_at&quot;: null
},
{
&quot;id&quot;: 4,
&quot;customer_id&quot;: 1,
&quot;name&quot;: &quot;财务&quot;,
&quot;created_at&quot;: &quot;2025-02-26T16:47:06.000000Z&quot;,
&quot;updated_at&quot;: &quot;2025-02-26T16:47:06.000000Z&quot;,
&quot;deleted_at&quot;: null
},
{
&quot;id&quot;: 5,
&quot;customer_id&quot;: 1,
&quot;name&quot;: &quot;财务&quot;,
&quot;created_at&quot;: &quot;2025-02-26T16:47:57.000000Z&quot;,
&quot;updated_at&quot;: &quot;2025-02-26T16:47:57.000000Z&quot;,
&quot;deleted_at&quot;: null
},
{
&quot;id&quot;: 6,
&quot;customer_id&quot;: 1,
&quot;name&quot;: &quot;财务&quot;,
&quot;created_at&quot;: &quot;2025-02-27T00:49:24.000000Z&quot;,
&quot;updated_at&quot;: &quot;2025-02-27T00:49:24.000000Z&quot;,
&quot;deleted_at&quot;: null
},
{
&quot;id&quot;: 7,
&quot;customer_id&quot;: 1,
&quot;name&quot;: &quot;财务&quot;,
&quot;created_at&quot;: &quot;2025-02-27T01:12:58.000000Z&quot;,
&quot;updated_at&quot;: &quot;2025-02-27T01:12:58.000000Z&quot;,
&quot;deleted_at&quot;: null
},
{
&quot;id&quot;: 8,
&quot;customer_id&quot;: 1,
&quot;name&quot;: &quot;财务&quot;,
&quot;created_at&quot;: &quot;2025-02-27T01:35:00.000000Z&quot;,
&quot;updated_at&quot;: &quot;2025-02-27T01:35:00.000000Z&quot;,
&quot;deleted_at&quot;: null
},
{
&quot;id&quot;: 9,
&quot;customer_id&quot;: 1,
&quot;name&quot;: &quot;财务&quot;,
&quot;created_at&quot;: &quot;2025-02-27T01:35:39.000000Z&quot;,
&quot;updated_at&quot;: &quot;2025-02-27T01:35:39.000000Z&quot;,
&quot;deleted_at&quot;: null
},
{
&quot;id&quot;: 10,
&quot;customer_id&quot;: 1,
&quot;name&quot;: &quot;财务&quot;,
&quot;created_at&quot;: &quot;2025-02-27T02:17:11.000000Z&quot;,
&quot;updated_at&quot;: &quot;2025-02-27T02:17:11.000000Z&quot;,
&quot;deleted_at&quot;: null
},
{
&quot;id&quot;: 13,
&quot;customer_id&quot;: 1,
&quot;name&quot;: &quot;财务&quot;,
&quot;created_at&quot;: &quot;2025-02-27T05:24:08.000000Z&quot;,
&quot;updated_at&quot;: &quot;2025-02-27T05:24:08.000000Z&quot;,
&quot;deleted_at&quot;: null
}
],
&quot;total&quot;: 16
}
}
</code></pre>
<h5>备注</h5>
<p>这里是备注信息</p>