From ae5a0531d8eda5feddf5d1e3d12aaa2b216f5da7 Mon Sep 17 00:00:00 2001 From: bandl <1658002533@qq.com> Date: Wed, 29 Sep 2021 21:18:00 +0800 Subject: [PATCH] chore(middleware): update middle --- makefile | 2 ++ middleware/config/middle.gen.go | 17 ++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/makefile b/makefile index b09339a..b61609a 100644 --- a/makefile +++ b/makefile @@ -13,6 +13,7 @@ build: .PHONY: install install: + @make gen-middleware @make build .PHONY: dev @@ -27,5 +28,6 @@ gen-struct: gen-protobuf: @python3 ./shell/gen_protobuf.py +.PHONY: gen-middleware gen-middleware: @python3 ./shell/gen_middleware.py diff --git a/middleware/config/middle.gen.go b/middleware/config/middle.gen.go index 83496f4..4f00352 100644 --- a/middleware/config/middle.gen.go +++ b/middleware/config/middle.gen.go @@ -5,17 +5,16 @@ package config import ( "gitee.com/timedb/wheatCache/middleware" - - logMiddle "gitee.com/timedb/wheatCache/middleware/log-middle" - mapKey "gitee.com/timedb/wheatCache/middleware/map-key" -) + logMiddle "gitee.com/timedb/wheatCache/middleware/log-middle" + mapKey "gitee.com/timedb/wheatCache/middleware/map-key" +) func GetMiddlewareMap() map[string]middleware.MiddlewareInterface { - return map[string]middleware.MiddlewareInterface{ - - "logMiddle":logMiddle.NewMiddleware(), - "mapKey":mapKey.NewMiddleware(), + return map[string]middleware.MiddlewareInterface{ + + "logMiddle": logMiddle.NewMiddleware(), + "mapKey": mapKey.NewMiddleware(), } -} \ No newline at end of file +}