22 lines
308 B
Go
22 lines
308 B
Go
package controllers
|
|
|
|
import "reflect"
|
|
|
|
type CallResult struct {
|
|
Code string `json:"code"`
|
|
Desc string `json:"desc"`
|
|
Data string `json:"data"`
|
|
}
|
|
|
|
//定义路由器结构类型
|
|
type Routers struct {
|
|
}
|
|
|
|
var (
|
|
routerMap map[string]reflect.Value
|
|
)
|
|
|
|
func Init() {
|
|
routerMap = make(map[string]reflect.Value)
|
|
}
|