From 82a6e9269ee2c0ea639866594d2afaf3007e14d3 Mon Sep 17 00:00:00 2001 From: CuteReimu <415551921@qq.com> Date: Wed, 27 Mar 2024 15:47:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- live.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/live.go b/live.go index 487b195..8424dbe 100644 --- a/live.go +++ b/live.go @@ -185,17 +185,17 @@ type SubLiveArea struct { AreaType int `json:"area_type"` } -type LiveArea struct { +type LiveAreaList struct { Id int `json:"id"` // 父分区id Name string `json:"name"` // 父分区名 List []SubLiveArea `json:"list"` // 子分区列表 } // GetLiveAreaList 获取全部直播间分区列表 -func (c *Client) GetLiveAreaList() ([]LiveArea, error) { +func (c *Client) GetLiveAreaList() ([]LiveAreaList, error) { const ( method = resty.MethodGet url = "https://api.live.bilibili.com/room/v1/Area/getList" ) - return execute[[]LiveArea](c, method, url, nil) + return execute[[]LiveAreaList](c, method, url, nil) }