01 - 群与资料列表
<p>[TOC]</p>
<h5>简要描述:</h5>
<ul>
<li>小程序 - 资料与群接口</li>
</ul>
<h5>请求URL:</h5>
<ul>
<li><code>https://xx.com/api/dataAndGroup</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>
<tr>
<td style="text-align: left;">satoken</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">String</td>
<td>授权码</td>
</tr>
</tbody>
</table>
<h5>请求示例</h5>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;: 200,
&quot;desc&quot;: &quot;成功&quot;,
&quot;data&quot;: {
&quot;dataInfo&quot;: {
&quot;id&quot;: 1,
&quot;title&quot;: &quot;免费资料&quot;,
&quot;subtitle&quot;: &quot;不是培训机构,不推课&quot;,
&quot;popularity&quot;: 1000,
&quot;groupType&quot;: 0
},
&quot;groupInfo&quot;: {
&quot;id&quot;: 2,
&quot;title&quot;: &quot;Java后端技术交流群&quot;,
&quot;subtitle&quot;: &quot;社群不单独收费&quot;,
&quot;popularity&quot;: 1000,
&quot;groupType&quot;: 1
}
}
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>dataInfo.id</td>
<td>Int</td>
<td></td>
</tr>
<tr>
<td>dataInfo.title</td>
<td>String</td>
<td>主标题</td>
</tr>
<tr>
<td>dataInfo.subtitle</td>
<td>String</td>
<td>子标题</td>
</tr>
<tr>
<td>dataInfo.popularity</td>
<td>Int</td>
<td>人气</td>
</tr>
<tr>
<td>dataInfo.groupType</td>
<td>Int</td>
<td>群类型</td>
</tr>
<tr>
<td>groupInfo.id</td>
<td>Int</td>
<td></td>
</tr>
<tr>
<td>groupInfo.title</td>
<td>String</td>
<td>主标题</td>
</tr>
<tr>
<td>groupInfo.subtitle</td>
<td>String</td>
<td>子标题</td>
</tr>
<tr>
<td>groupInfo.popularity</td>
<td>Int</td>
<td>人气</td>
</tr>
<tr>
<td>groupInfo.groupType</td>
<td>Int</td>
<td>群类型</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>实际开发接口时,可稍微调整</li>
</ul>