mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-22 01:57:04 +08:00
feat: meta manage api
This commit is contained in:
@@ -5,12 +5,6 @@ import (
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
type Resp struct {
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
Data interface{} `json:"data"`
|
||||
}
|
||||
|
||||
func ErrorResp(c *gin.Context, err error, code int, l ...bool) {
|
||||
if len(l) != 0 && l[0] {
|
||||
log.Errorf("%+v", err)
|
||||
|
||||
Reference in New Issue
Block a user