summaryrefslogtreecommitdiff
path: root/bilibili/model.go
diff options
context:
space:
mode:
Diffstat (limited to 'bilibili/model.go')
-rw-r--r--bilibili/model.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/bilibili/model.go b/bilibili/model.go
new file mode 100644
index 0000000..ccffef9
--- /dev/null
+++ b/bilibili/model.go
@@ -0,0 +1,8 @@
+package bilibili
+
+type BaseResponse[T any] struct {
+ Code int `json:"code"`
+ Message string `json:"message"`
+ TTL int `json:"ttl"`
+ Data T `json:"data"`
+}