mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-26 07:14:03 +08:00

* feat: add alist v3 driver (close #1833) * chore: use generics Co-authored-by: Noah Hsu <i@nn.ci>
13 lines
237 B
Go
13 lines
237 B
Go
package common
|
|
|
|
type Resp[T any] struct {
|
|
Code int `json:"code"`
|
|
Message string `json:"message"`
|
|
Data T `json:"data"`
|
|
}
|
|
|
|
type PageResp struct {
|
|
Content interface{} `json:"content"`
|
|
Total int64 `json:"total"`
|
|
}
|