snapshot
This commit is contained in:
11
internal/handler/handler.go
Normal file
11
internal/handler/handler.go
Normal 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()
|
||||
Reference in New Issue
Block a user