# 分页获取加入的房间列表

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /chatroom/v2/room/joined:
    get:
      summary: 分页获取加入的房间列表
      deprecated: false
      description: ''
      tags:
        - HTTP接口/房间接口
      parameters:
        - name: offset
          in: query
          description: ''
          required: false
          example: '0'
          schema:
            type: string
        - name: limit
          in: query
          description: ''
          required: false
          example: '20'
          schema:
            type: string
        - name: client_type
          in: query
          description: 声明请求黑盒语音
          required: true
          example: heybox_chat
          schema:
            type: string
            default: heybox_chat
        - name: x_client_type
          in: query
          description: 声明客户端类型
          required: true
          example: web
          schema:
            type: string
            default: web
        - name: os_type
          in: query
          description: 声明客户端类型
          required: true
          example: web
          schema:
            type: string
            default: web
        - name: x_os_type
          in: query
          description: 声明客户端是bot
          required: true
          example: bot
          schema:
            type: string
            default: bot
        - name: x_app
          in: query
          description: 声明请求黑盒语音
          required: true
          example: heybox_chat
          schema:
            type: string
            default: heybox_chat
        - name: chat_os_type
          in: query
          description: 声明客户端是bot
          required: true
          example: bot
          schema:
            type: string
            default: bot
        - name: chat_version
          in: query
          description: 客户端版本号,不同版本返回的结果可能有区别
          required: true
          example: 1.30.0
          schema:
            type: string
            default: 1.30.0
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json;charset=UTF-8
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  msg:
                    type: string
                  result:
                    type: object
                    properties:
                      rooms:
                        type: array
                        items:
                          type: object
                          properties:
                            room_id:
                              type: string
                            room_name:
                              type: string
                            room_avatar:
                              type: string
                            create_by:
                              type: integer
                            room_pic:
                              type: string
                            is_public:
                              type: integer
                            public_id:
                              type: string
                            is_hot:
                              type: integer
                            join_time:
                              type: integer
                          x-apifox-orders:
                            - room_id
                            - room_name
                            - room_avatar
                            - create_by
                            - room_pic
                            - is_public
                            - public_id
                            - is_hot
                            - join_time
                      total:
                        type: integer
                      offset:
                        type: integer
                      limit:
                        type: integer
                    required:
                      - rooms
                      - total
                      - offset
                      - limit
                    x-apifox-orders:
                      - rooms
                      - total
                      - offset
                      - limit
                  status:
                    type: string
                required:
                  - msg
                  - result
                  - status
                x-apifox-orders:
                  - msg
                  - result
                  - status
              example:
                msg: ''
                result:
                  rooms:
                    rooms:
                      - room_id: '3581310465924767744'
                        room_name: 酸辣鸡杂面的房间111
                        room_avatar: >-
                          https://imgheybox.max-c.com/web/bbs/2024/05/15/b75155eb87b7291db491f7d71d0b1b1b.png
                        create_by: 43028164
                        room_pic: >-
                          https://imgheybox.max-c.com/web/bbs/2024/05/15/225d1dff187a7f948a8fd1f2a9f77ae8.png
                        is_public: 1
                        public_id: '247023'
                        is_hot: 0
                        join_time: 1717125593578
                      - room_id: '3382196129213980672'
                        room_name: V我50买个麦旋风的房间
                        room_avatar: ''
                        create_by: 43028164
                        room_pic: ''
                        is_public: 0
                        public_id: ''
                        is_hot: 0
                        join_time: 1716810434913
                      - room_id: '3412263855248646144'
                        room_name: 从军官方社区
                        room_avatar: >-
                          https://imgheybox.max-c.com/web/bbs/2023/09/25/fe926e23fe82b776102b0bf1841e5b85.png
                        create_by: 18083425
                        room_pic: >-
                          https://imgheybox.max-c.com/web/bbs/2023/12/06/f18ac0643f72211188c1207f0a9bdef1.jpeg
                        is_public: 1
                        public_id: '290656'
                        is_hot: 1
                        join_time: 1716810415963
                      - room_id: '3347220983638401024'
                        room_name: 测试房间
                        room_avatar: ''
                        create_by: 43028164
                        room_pic: ''
                        is_public: 0
                        public_id: ''
                        is_hot: 0
                        join_time: 1716614542385
                    total: 4
                    offset: 0
                    limit: 20
                status: ok
          headers: {}
          x-apifox-name: 成功
      security:
        - apikey-header-token: []
      x-apifox-folder: HTTP接口/房间接口
      x-apifox-status: developing
      x-run-in-apifox: https://app.apifox.com/web/project/4856361/apis/api-226373523-run
components:
  schemas: {}
  securitySchemes:
    token:
      type: apikey
      in: header
      name: token
      token: ODYzNzY0NDM7MTc1NTc1OTk1NzYyODYzNjQ0NzsxNTU0MDM2NTkxNzk2OTM1OTY5
    apikey-header-token:
      type: apiKey
      in: header
      name: token
servers:
  - url: http://prod-cn.your-api-server.com
    description: 正式环境
security:
  - apikey-header-token: []

```
