diff --git a/middleware/config/get_middleware_map.go b/middleware/config/get_middleware_map.go deleted file mode 100644 index dde2fdd..0000000 --- a/middleware/config/get_middleware_map.go +++ /dev/null @@ -1,14 +0,0 @@ -package config - -import ( - "gitee.com/timedb/wheatCache/middleware" - logMiddle "gitee.com/timedb/wheatCache/middleware/logmiddle" -) - -func GetMiddlewareMap() map[string]middleware.MiddlewareInterface { - logMiddle := logMiddle.NewLogMiddle() - - return map[string]middleware.MiddlewareInterface{ - "logMiddle": logMiddle, - } -} diff --git a/middleware/logmiddle/middleware.go b/middleware/logmiddle/middleware.go deleted file mode 100644 index 34ae53f..0000000 --- a/middleware/logmiddle/middleware.go +++ /dev/null @@ -1,22 +0,0 @@ -package log_middle - -import ( - "fmt" - - "gitee.com/timedb/wheatCache/middleware" -) - -type logmiddle struct { -} - -func (l *logmiddle) Init() { - fmt.Println("1") -} - -func (l *logmiddle) Exet(interface{}) (interface{}, error) { - return nil, nil -} - -func NewLogMiddle() middleware.MiddlewareInterface { - return &logmiddle{} -}