vworkApi


获取群列表

<p><strong>简要描述:</strong></p> <ul> <li>获取群列表,根据“is_external”字段来区分内部群还是外部群</li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://127.0.0.1:8989/api</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>JSON参数:</strong></p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">是否必选</th> <th style="text-align: left;">类型</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td style="text-align: left;">消息类型</td> </tr> <tr> <td style="text-align: left;">page_num</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td style="text-align: left;">当前页数</td> </tr> <tr> <td style="text-align: left;">page_size</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td style="text-align: left;">每页显示数量</td> </tr> </tbody> </table> <p><strong>发送示例:</strong></p> <pre><code class="language-json">{     &amp;quot;type&amp;quot;: 2002,     &amp;quot;page_num&amp;quot;: 1,     &amp;quot;page_size&amp;quot;: 10 }</code></pre> <p><strong>返回示例:</strong></p> <pre><code class="language-json">{ &amp;quot;data&amp;quot;: { &amp;quot;list&amp;quot;: [ {                 &amp;quot;chat_room_id&amp;quot;: &amp;quot;R:239xxx&amp;quot;, //群ID                 &amp;quot;create_time&amp;quot;: &amp;quot;1619799671&amp;quot;, //创建时间                 &amp;quot;create_user_id&amp;quot;: &amp;quot;168xxx&amp;quot;, //创建人ID                 &amp;quot;is_admin&amp;quot;: &amp;quot;0&amp;quot;, //是否为管理员 0:否 1:是                 &amp;quot;is_external&amp;quot;: &amp;quot;0&amp;quot;, //是否为外部群 0:内部群 1:外部群                 &amp;quot;nick_name&amp;quot;: &amp;quot;测试的内部群&amp;quot;, //群昵称                 &amp;quot;notice_content&amp;quot;: &amp;quot;我是群公告啊啊啊&amp;quot;, //群公告内容                 &amp;quot;notice_time&amp;quot;: &amp;quot;1619799671&amp;quot;, //群公告发布时间                 &amp;quot;notice_user_id&amp;quot;: &amp;quot;168xxx&amp;quot;, //群公告发送者ID                 &amp;quot;total&amp;quot;: &amp;quot;3&amp;quot; //群成员数量             }, ... ], &amp;quot;page_num&amp;quot;: 1, //当前页数 &amp;quot;page_size&amp;quot;: 10, //每页显示数量 &amp;quot;total&amp;quot;: 8, //总数量 &amp;quot;total_page&amp;quot;: 1 //总页数 }, &amp;quot;errmsg&amp;quot;: &amp;quot;OK&amp;quot;, &amp;quot;errno&amp;quot;: 0 }</code></pre>

页面列表

ITEM_HTML