diff --git a/pkg/port/beego/controllers/hello.go b/pkg/port/beego/controllers/hello.go deleted file mode 100644 index c33c53a..0000000 --- a/pkg/port/beego/controllers/hello.go +++ /dev/null @@ -1,22 +0,0 @@ -package controllers - -import ( - "github.com/beego/beego/v2/server/web" - "github.com/beego/beego/v2/server/web/context" -) - -type HelloController struct { - web.Controller -} - -func (c *HelloController) Say() { - c.JSONResp(map[string]string{ - "msg": "hello", - }) -} - -func SayHello(c *context.Context) { - c.JSONResp(map[string]string{ - "msg": "hello", - }) -} diff --git a/pkg/port/beego/routers/hello.go b/pkg/port/beego/routers/hello.go deleted file mode 100644 index 325909a..0000000 --- a/pkg/port/beego/routers/hello.go +++ /dev/null @@ -1,15 +0,0 @@ -package routers - -import ( - "github.com/beego/beego/v2/server/web" - "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/beego/controllers" -) - -func init() { - h1 := web.NewNamespace("/v1/demo", - web.NSCtrlGet("/hello", (*controllers.HelloController).Say), - web.NSCtrlGet("/hello2", (*controllers.HelloController).Say), - // web.NSGet("/hello1", controllers.SayHello), - ) - web.AddNamespace(h1) -}