试试统一api

This commit is contained in:
suyl
2021-06-25 10:23:02 +08:00
parent ee02691601
commit 97cc8cce0d
2 changed files with 16 additions and 0 deletions

View File

@@ -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)
}