From 8e15d802865ed57db0018c15ea5559c8bd44c01f Mon Sep 17 00:00:00 2001 From: Keuin Date: Wed, 7 Sep 2022 02:48:46 +0800 Subject: First working version. Just a POC. --- bilibili/model.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 bilibili/model.go (limited to 'bilibili/model.go') 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"` +} -- cgit v1.2.3