试试统一api
This commit is contained in:
@@ -1,7 +1,21 @@
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user