|
@@ -4,7 +4,9 @@ import (
|
|
|
"git.sxidc.com/go-framework/baize"
|
|
"git.sxidc.com/go-framework/baize"
|
|
|
"git.sxidc.com/go-framework/baize/examples/examples/project/application/service"
|
|
"git.sxidc.com/go-framework/baize/examples/examples/project/application/service"
|
|
|
"git.sxidc.com/go-framework/baize/examples/examples/project/config"
|
|
"git.sxidc.com/go-framework/baize/examples/examples/project/config"
|
|
|
|
|
+ "git.sxidc.com/go-framework/baize/framwork/api"
|
|
|
"git.sxidc.com/go-framework/baize/framwork/application"
|
|
"git.sxidc.com/go-framework/baize/framwork/application"
|
|
|
|
|
+ "net/http"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
var appInstance *application.App
|
|
var appInstance *application.App
|
|
@@ -79,3 +81,7 @@ func Finish() error {
|
|
|
|
|
|
|
|
return nil
|
|
return nil
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+func ServerHttpForTest(w http.ResponseWriter, req *http.Request) {
|
|
|
|
|
+ appInstance.Api().RootRouter().(*api.RootRouter).ServerHttp(w, req)
|
|
|
|
|
+}
|