# 获取最近会话

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /get_recent_contact:
    post:
      summary: 获取最近会话
      deprecated: false
      description: 获取最近会话
      tags:
        - 用户接口
        - 用户接口
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                count:
                  default: 10
                  description: 获取的数量
                  anyOf:
                    - type: number
                    - type: string
              required:
                - count
              x-apifox-orders:
                - count
              x-apifox-ignore-properties: []
            examples:
              Default:
                value:
                  count: 10
                summary: 默认请求示例
      responses:
        '200':
          description: 业务响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/BaseResponse'
                  - type: object
                    required:
                      - data
                    properties:
                      data:
                        description: 业务数据
                        type: array
                        items:
                          type: object
                          properties:
                            lastestMsg:
                              description: 最后一条消息
                              type: object
                              x-apifox-orders: []
                              properties: {}
                              x-apifox-ignore-properties: []
                            peerUin:
                              description: 对象QQ
                              type: string
                            remark:
                              description: 备注
                              type: string
                            msgTime:
                              description: 消息时间
                              type: string
                            chatType:
                              description: 聊天类型
                              type: number
                            msgId:
                              description: 消息ID
                              type: string
                            sendNickName:
                              description: 发送者昵称
                              type: string
                            sendMemberName:
                              description: 发送者群名片
                              type: string
                            peerName:
                              description: 对象名称
                              type: string
                          required:
                            - lastestMsg
                            - peerUin
                            - remark
                            - msgTime
                            - chatType
                            - msgId
                            - sendNickName
                            - sendMemberName
                            - peerName
                          x-apifox-orders:
                            - lastestMsg
                            - peerUin
                            - remark
                            - msgTime
                            - chatType
                            - msgId
                            - sendNickName
                            - sendMemberName
                            - peerName
                          x-apifox-ignore-properties: []
                    x-apifox-orders:
                      - data
                    x-apifox-ignore-properties: []
              examples:
                Success:
                  summary: 成功响应
                  value:
                    status: ok
                    retcode: 0
                    data:
                      - peerUin: '123456'
                        peerName: 测试
                        msgTime: '1734567890'
                        msgId: '12345'
                        lastestMsg: {}
                    message: ''
                    wording: ''
                    stream: normal-action
                Error_1400:
                  summary: 请求参数错误或业务逻辑执行失败
                  value:
                    status: failed
                    retcode: 1400
                    data: null
                    message: 请求参数错误或业务逻辑执行失败
                    wording: 请求参数错误或业务逻辑执行失败
                    stream: normal-action
                Error_1401:
                  summary: 权限不足
                  value:
                    status: failed
                    retcode: 1401
                    data: null
                    message: 权限不足
                    wording: 权限不足
                    stream: normal-action
                Error_1404:
                  summary: 资源不存在
                  value:
                    status: failed
                    retcode: 1404
                    data: null
                    message: 资源不存在
                    wording: 资源不存在
                    stream: normal-action
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 用户接口
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5348325/apis/api-226659190-run
components:
  schemas:
    BaseResponse:
      type: object
      x-schema-id: BaseResponse
      properties:
        status:
          type: string
          description: 状态 (ok/failed)
        retcode:
          type: number
          description: 返回码
        data:
          type: string
        message:
          type: string
          description: 消息
        wording:
          type: string
          description: 提示
        stream:
          type: string
          description: 流式响应
          enum:
            - stream-action
            - normal-action
      required:
        - status
        - retcode
      x-apifox-orders:
        - status
        - retcode
        - data
        - message
        - wording
        - stream
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes: {}
servers: []
security: []

```
