获取字体
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>获取字体</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xx.com/api/listFonts</code></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>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;: 200,
&quot;data&quot;: {
&quot;fonts&quot;: [
{
&quot;title&quot;: &quot;思源宋体-常规&quot;,
&quot;url&quot;: &quot;https://tsj.youdubook.com/default/fonts/SourceHanSerifSC-Regular.otf&quot;
},
{
&quot;title&quot;: &quot;思源黑体-常规&quot;,
&quot;url&quot;: &quot;https://tsj.youdubook.com/default/fonts/SourceHanSansSC-Regular.otf&quot;
},
{
&quot;title&quot;: &quot;思源真黑体-常规&quot;,
&quot;url&quot;: &quot;https://tsj.youdubook.com/default/fonts/GenShinGothic-Regular.ttf&quot;
},
{
&quot;title&quot;: &quot;资源圆体-常规&quot;,
&quot;url&quot;: &quot;https://tsj.youdubook.com/default/fonts/ResourceHanRoundedSC-Regular.ttf&quot;
},
{
&quot;title&quot;: &quot;思源宋体-粗&quot;,
&quot;url&quot;: &quot;https://tsj.youdubook.com/default/fonts/SourceHanSerifSC-Bold.otf&quot;
},
{
&quot;title&quot;: &quot;汇文明体&quot;,
&quot;url&quot;: &quot;https://tsj.youdubook.com/default/fonts/huiwen_ming.otf&quot;
},
{
&quot;title&quot;: &quot;楷体&quot;,
&quot;url&quot;: &quot;https://tsj.youdubook.com/default/fonts/kai.ttf&quot;
}
]
},
&quot;message&quot;: &quot;&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;">groupid</td>
<td style="text-align: left;">int</td>
<td>用户组id,1:超级管理员;2:普通用户</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>