Finish all the abstract things.

This commit is contained in:
zicla
2019-04-28 01:45:57 +08:00
parent e043b6b8d7
commit 8aa0d11cbb
4 changed files with 6 additions and 8 deletions

View File

@ -20,7 +20,7 @@ type Context interface {
GetSessionCache() *cache.Table
//获取全局的ControllerMap
GetControllerMap() map[string]IController
GetControllerMap() map[string]Controller
//系统安装成功
InstallOk()

View File

@ -2,7 +2,7 @@ package core
import "net/http"
type IController interface {
type Controller interface {
Bean
//注册自己固定的路由。
RegisterRoutes() map[string]func(writer http.ResponseWriter, request *http.Request)