---
title: "获取二级地区列表"
method: GET
path: "/home/room/getSecondPartitionList"
tags: ["首页房间"]
---

# 获取二级地区列表

`GET /home/room/getSecondPartitionList`

## Request

- Base URL: `http://api.oloo.live`
- URL: `http://api.oloo.live/home/room/getSecondPartitionList`
- Auth: none declared

根据用户所属一级大区获取二级地区列表；未传uid时返回全部二级地区

## Query parameters

- `uid` integer

## Response `200`

OK

- WebServiceMessageHomePartitionGroupVO
  - `code` integer
  - `data` HomePartitionGroupVO: 首页二级分区列表
    - `curPartitionId` integer: 当前二级分区ID
    - `partitionList` RegionPartitionDTO[]: 二级分区列表
      - `baseId` string
      - `id` integer: 分区ID
      - `partitionName` string: 分区名称
      - `levelType` integer: 分区层级：1一级分区，2二级分区
      - `allRegion` integer: 是否可选全部国家
      - `parentId` integer: 父级分区ID
      - `isShow` boolean: 是否展示
      - `langJson` string: 语言列表JSON
      - `defaultLang` string: 默认语言
      - `version` integer: 数据版本
  - `message` string
  - `time` integer

---

[API](https://skmtc.dev/oloo/apis/oloo-api.md) - [All operations](https://skmtc.dev/oloo/apis/oloo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/oloo/apis/oloo-api/revisions/ada91d3a60e4?raw)
