This commit is contained in:
xkm
2026-03-30 17:17:47 +08:00
parent 74306bdc86
commit a9a1a1ec24
12 changed files with 1056 additions and 8 deletions

View File

@@ -0,0 +1,11 @@
package handler
import "github.com/gorilla/schema"
type Response[T any] struct {
Code int `json:"code"`
Message string `json:"message"`
Data T `json:"data,omitempty"`
}
var decoder = schema.NewDecoder()