You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
353 B
12 lines
353 B
|
7 years ago
|
package core
|
||
|
|
|
||
|
|
import "net/http"
|
||
|
|
|
||
|
|
type IController interface {
|
||
|
|
IBean
|
||
|
|
//注册自己固定的路由。
|
||
|
|
RegisterRoutes() map[string]func(writer http.ResponseWriter, request *http.Request)
|
||
|
|
//处理一些特殊的路由。
|
||
|
|
HandleRoutes(writer http.ResponseWriter, request *http.Request) (func(writer http.ResponseWriter, request *http.Request), bool)
|
||
|
|
}
|