From c81730e74072eea250ba99032943851f8d3f6434 Mon Sep 17 00:00:00 2001 From: what Date: Mon, 24 Apr 2023 15:02:51 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20Service=20=E6=9C=8D=E5=8A=A1=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.go | 10 ++++++++++ service.go | 10 +++------- 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 server.go diff --git a/server.go b/server.go new file mode 100644 index 0000000..f81775a --- /dev/null +++ b/server.go @@ -0,0 +1,10 @@ +package contracts + +import ( + "net/http" +) + +type Server interface { + Execute(*http.Request) any + ServeHTTP(http.ResponseWriter, *http.Request) +} diff --git a/service.go b/service.go index 1a6a1e7..a6124af 100644 --- a/service.go +++ b/service.go @@ -1,10 +1,6 @@ package contracts -import ( - "net/http" -) - type Service interface { - Execute(*http.Request) any - ServeHTTP(http.ResponseWriter, *http.Request) -} \ No newline at end of file + GetResListener(code string) ResListener + GetControllerr(code string) Controller +}