summaryrefslogtreecommitdiff
path: root/bilibili/request.go
diff options
context:
space:
mode:
authorKeuin <[email protected]>2023-07-29 20:28:19 +0800
committerKeuin <[email protected]>2023-07-29 20:28:28 +0800
commitc4dbd4a7b2ad86fcb0220a4e2ffdae68d0d00103 (patch)
tree37e3487153a377aa5555d780c15f3a774237722e /bilibili/request.go
parent9b5c3913989754370bd7d03ac8cf2e32a6172afb (diff)
Merge branch 'bugfix-invalid-dmmsg'v0.5.0
Diffstat (limited to 'bilibili/request.go')
-rw-r--r--bilibili/request.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bilibili/request.go b/bilibili/request.go
index 613530c..39479a1 100644
--- a/bilibili/request.go
+++ b/bilibili/request.go
@@ -60,7 +60,7 @@ func callGetRaw(b *Bilibili, url string) (resp *http.Response, respBody []byte,
}
// callGet make a GET request and parse response as a JSON document with given model.
-func callGet[T BaseResponse[V], V any](b Bilibili, url string) (resp T, err error) {
+func callGet[T types.BaseResponse[V], V any](b *Bilibili, url string) (resp T, err error) {
r, data, err := callGetRaw(b, url)
if err != nil {
return