fix(middle-driver): update file name

This commit is contained in:
Sodesnei 2021-10-04 20:04:28 +08:00
parent 373de8b282
commit ea36d370a7
6 changed files with 8 additions and 7 deletions

View File

@ -4,9 +4,10 @@
package config
import (
"gitee.com/timedb/wheatCache/middleware"
logMiddle "gitee.com/timedb/wheatCache/middleware/log-middle"
mapKey "gitee.com/timedb/wheatCache/middleware/map-key"
"gitee.com/timedb/wheatCache/plugins"
logMiddle "gitee.com/timedb/wheatCache/plugins/log-middle"
mapKey "gitee.com/timedb/wheatCache/plugins/map-key"
)
func GetMiddlewareMap() map[string]middleware.MiddleToolsInterface {

View File

@ -4,9 +4,9 @@
package config
import (
"gitee.com/timedb/wheatCache/middleware"
"gitee.com/timedb/wheatCache/plugins"
{%for dir in dirs %}
{{dir[0]}} "gitee.com/timedb/wheatCache/middleware/{{dir[1]}}"
{{dir[0]}} "gitee.com/timedb/wheatCache/plugins/{{dir[1]}}"
{%- endfor%}
)

View File

@ -3,11 +3,11 @@ from jinja2 import Template
sysPath = os.getcwd()
tempPath = f"{sysPath}/middleware/config"
tempPath = f"{sysPath}/plugins/config"
structurePath = f"{sysPath}/pkg/structure"
protobufPath = f"{sysPath}/protobuf"
storagePath = f"{sysPath}/storage"
middlePath = f"{sysPath}/middleware"
middlePath = f"{sysPath}/plugins"
def go_fmt(path: str):
os.system(f"go fmt {path}")