feat: add alist v3 driver (close #1833 pr #2129)

* feat: add alist v3 driver (close #1833)

* chore: use generics

Co-authored-by: Noah Hsu <i@nn.ci>
This commit is contained in:
BoYanZh
2022-10-27 10:54:49 +08:00
committed by GitHub
parent f0cc0a76a9
commit 5f79d665d9
7 changed files with 165 additions and 8 deletions

View File

@ -1,9 +1,9 @@
package common
type Resp struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data"`
type Resp[T any] struct {
Code int `json:"code"`
Message string `json:"message"`
Data T `json:"data"`
}
type PageResp struct {