# 群分页

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/qw/doApi:
    post:
      summary: 群分页
      deprecated: false
      description: >-
        <div style="background: linear-gradient(135deg, rgba(255, 213, 145,
        0.45) 0%, rgba(255, 255, 255, 0.06) 100%); border: 1px solid rgba(255,
        236, 202, 0.7); border-radius: 12px; padding: 20px 28px; margin-bottom:
        20px; box-shadow: 0 4px 12px rgba(250, 140, 22, 0.08)">
          <h3 style="margin: 0 0 8px 0; font-size: 18px; font-weight: 600; color: inherit; border: none; padding-bottom: 0;">群分页</h3>
          <p style="margin: 0; font-size: 14px; color: inherit; line-height: 1.6">本接口仅支持查询本人创建的群组。<br>如需查询全部群组，需结合 <a href="api-344613938" style="">会话分页</a> 接口使用，包含已保存至通讯录的群聊及其他临时群会话。 sessionType=1 时为群 id。</p>
        </div>
      tags:
        - API参考/客户管理/群模块
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: X-QIWEI-TOKEN
          in: header
          description: >-
            <p style="margin: 0; font-size: 14px; color: inherit; line-height:
            1.6;">进入 <a href="https://new.qiweapi.com/tokens" style="color:
            inherit; text-decoration: underline; font-weight: 600;">应用凭证</a>，复制
            <code style="color: inherit; background: rgba(82, 196, 26, 0.08);
            border: 1px solid rgba(82, 196, 26, 0.1); padding: 2px 4px;
            border-radius: 3px;">TokenId</code>。</p>
          required: true
          example: '{{tokenId}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  title: 执行方法
                  description: >-
                    <code style="color: inherit; background: rgba(82, 196, 26,
                    0.08); border: 1px solid rgba(82, 196, 26, 0.1); padding:
                    2px 4px; border-radius: 3px;">/room/getRoomList</code>
                params:
                  type: object
                  properties:
                    guid:
                      type: string
                      title: 设备 ID
                      description: >-
                        <p style="margin: 0; font-size: 14px; color: inherit;
                        line-height: 1.6;">设备唯一标识 <code style="color: inherit;
                        background: rgba(82, 196, 26, 0.08); border: 1px solid
                        rgba(82, 196, 26, 0.1); padding: 2px 4px; border-radius:
                        3px;">guid</code>，由「创建设备」接口返回，业务接口必传。</p>
                    nextStartIndex:
                      type: integer
                      description: >-
                        <p style="margin: 0; font-size: 14px; color: inherit;
                        line-height: 1.6;">分页使用，首次传0，下次传入返回值nextStartIndex</p>
                      title: 分页游标
                  required:
                    - guid
                    - nextStartIndex
                  x-apifox-orders:
                    - guid
                    - nextStartIndex
                  title: 请求参数
              required:
                - method
                - params
              x-apifox-orders:
                - method
                - params
            example:
              method: /room/getRoomList
              params:
                guid: '{{guid}}'
                nextStartIndex: 0
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    title: 状态码
                    description: >-
                      <p style="margin: 0; font-size: 14px; color: inherit;
                      line-height: 1.6;">状态码，<code style="color: inherit;
                      background: rgba(82, 196, 26, 0.08); border: 1px solid
                      rgba(82, 196, 26, 0.1); padding: 2px 4px; border-radius:
                      3px;">0</code> 成功。</p>
                  data:
                    type: object
                    properties:
                      hasMore:
                        type: integer
                        description: |-
                          hasMore=0，无分页
                          hasMore=1，有分页
                        title: 是否有更多
                      nextStartIndex:
                        type: integer
                        description: >-
                          <p style="margin: 0; font-size: 14px; color: inherit;
                          line-height: 1.6;">下次请求时应传入的nextStartIndex</p>
                        title: 分页游标
                      roomCount:
                        type: integer
                        title: 数量
                        description: ''
                      roomList:
                        type: array
                        items:
                          type: object
                          properties:
                            roomAvatarUrl:
                              type: string
                              title: 头像
                              description: ''
                            roomCreateTime:
                              type: string
                              title: 创建时间
                              description: ''
                            roomId:
                              type: string
                              title: 群id
                              description: ''
                            roomName:
                              type: string
                              title: 群名称
                              description: ''
                            roomOwnerId:
                              type: string
                              title: 群主id
                              description: ''
                            roomMemberCount:
                              type: integer
                              title: 成员数量
                              description: ''
                          x-apifox-orders:
                            - roomAvatarUrl
                            - roomCreateTime
                            - roomId
                            - roomName
                            - roomOwnerId
                            - roomMemberCount
                        title: 列表
                        description: >-
                          <p style="margin: 0; font-size: 14px; color: inherit;
                          line-height: 1.6;">群列表。</p>
                    required:
                      - hasMore
                      - nextStartIndex
                      - roomCount
                      - roomList
                    x-apifox-orders:
                      - hasMore
                      - nextStartIndex
                      - roomCount
                      - roomList
                    title: 响应数据
                    description: >-
                      <p style="margin: 0; font-size: 14px; color: inherit;
                      line-height: 1.6;">业务数据。</p>
                  msg:
                    type: string
                    title: 说明
                    description: >-
                      <p style="margin: 0; font-size: 14px; color: inherit;
                      line-height: 1.6;">返回说明。</p>
                required:
                  - code
                  - data
                  - msg
                x-apifox-orders:
                  - code
                  - data
                  - msg
              example:
                code: 200
                data:
                  hasMore: 0
                  nextStartIndex: -1
                  roomCount: 1
                  roomList:
                    - roomAvatarUrl: ''
                      roomCreateTime: '1708931409'
                      roomId: 107910**********
                      roomName: dGVzdDAyMjbmtYvor5XnvqQ=
                      roomOwnerId: 1688**********
                      roomMemberCount: 5
                msg: 成功
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: API参考/客户管理/群模块
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/7051713/apis/api-344613883-run
components:
  schemas: {}
  securitySchemes:
    apiKey:
      type: apikey
      in: header
      name: X-WECOM-TOKEN
servers:
  - url: https://new.qiweapi.com/qiwe
    description: 正式环境
security: []

```
