任意结构体,增加RouterFunc识别

This commit is contained in:
2021-03-26 18:01:34 +08:00
parent eb9d6abd4f
commit 08a8a8015c
2 changed files with 19 additions and 4 deletions

View File

@ -70,3 +70,9 @@ func (oa *otherApi) DemoApiFunc() RouterFunc {
func (oa *otherApi) Lala() {
}
func (oa *otherApi) SelfApi() (method string, uri string, handlerFunc gin.HandlerFunc, middlewareList []gin.HandlerFunc) {
return http.MethodGet, "/api/other/self/test", func(context *gin.Context) {
}, nil
}