刷题无忧

微信小程序后端接口


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>{ &amp;quot;code&amp;quot;: 200, &amp;quot;desc&amp;quot;: &amp;quot;成功&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;dataInfo&amp;quot;: { &amp;quot;id&amp;quot;: 1, &amp;quot;title&amp;quot;: &amp;quot;免费资料&amp;quot;, &amp;quot;subtitle&amp;quot;: &amp;quot;不是培训机构,不推课&amp;quot;, &amp;quot;popularity&amp;quot;: 1000, &amp;quot;groupType&amp;quot;: 0 }, &amp;quot;groupInfo&amp;quot;: { &amp;quot;id&amp;quot;: 2, &amp;quot;title&amp;quot;: &amp;quot;Java后端技术交流群&amp;quot;, &amp;quot;subtitle&amp;quot;: &amp;quot;社群不单独收费&amp;quot;, &amp;quot;popularity&amp;quot;: 1000, &amp;quot;groupType&amp;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>

页面列表

ITEM_HTML