12 lines
223 B
Go
12 lines
223 B
Go
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()
|