From a4f1c3a0bfb6590993063c242bab91efee95d1f8 Mon Sep 17 00:00:00 2001 From: "DESKTOP-TO0VST1\\mayn" Date: Sun, 19 May 2024 11:19:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=BD=E5=90=8D=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- history.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/history.go b/history.go index 903c2e7..3a80a3e 100644 --- a/history.go +++ b/history.go @@ -4,7 +4,7 @@ import ( "github.com/go-resty/resty/v2" ) -type HistoryParam struct { +type GetHistoryParam struct { Max int `json:"max,omitempty" request:"query,omitempty"` // 历史记录截止目标 id。默认为 0。稿件:稿件 avid。剧集(番剧 / 影视):剧集 ssid。直播:直播间 id。文集:文集 rlid。文章:文章 cvid Business string `json:"business,omitempty" request:"query,omitempty"` // 历史记录截止目标业务类型。默认为空。archive:稿件。pgc:剧集(番剧 / 影视)。live:直播。article-list:文集。article:文章 ViewAt int `json:"view_at,omitempty" request:"query,omitempty"` // 历史记录截止时间。时间戳。默认为 0。0 为当前 时间 @@ -62,7 +62,7 @@ type HistoryInfo struct { } // GetHistory 获取历史记录列表 -func (c *Client) GetHistory(param HistoryParam) (*HistoryInfo, error) { +func (c *Client) GetHistory(param GetHistoryParam) (*HistoryInfo, error) { const ( method = resty.MethodGet url = "https://api.bilibili.com/x/web-interface/history/cursor"