fix(middle-driver): update file name
This commit is contained in:
parent
373de8b282
commit
ea36d370a7
|
@ -4,9 +4,10 @@
|
||||||
package config
|
package config
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitee.com/timedb/wheatCache/middleware"
|
"gitee.com/timedb/wheatCache/plugins"
|
||||||
logMiddle "gitee.com/timedb/wheatCache/middleware/log-middle"
|
|
||||||
mapKey "gitee.com/timedb/wheatCache/middleware/map-key"
|
logMiddle "gitee.com/timedb/wheatCache/plugins/log-middle"
|
||||||
|
mapKey "gitee.com/timedb/wheatCache/plugins/map-key"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetMiddlewareMap() map[string]middleware.MiddleToolsInterface {
|
func GetMiddlewareMap() map[string]middleware.MiddleToolsInterface {
|
|
@ -4,9 +4,9 @@
|
||||||
package config
|
package config
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitee.com/timedb/wheatCache/middleware"
|
"gitee.com/timedb/wheatCache/plugins"
|
||||||
{%for dir in dirs %}
|
{%for dir in dirs %}
|
||||||
{{dir[0]}} "gitee.com/timedb/wheatCache/middleware/{{dir[1]}}"
|
{{dir[0]}} "gitee.com/timedb/wheatCache/plugins/{{dir[1]}}"
|
||||||
{%- endfor%}
|
{%- endfor%}
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,11 +3,11 @@ from jinja2 import Template
|
||||||
|
|
||||||
|
|
||||||
sysPath = os.getcwd()
|
sysPath = os.getcwd()
|
||||||
tempPath = f"{sysPath}/middleware/config"
|
tempPath = f"{sysPath}/plugins/config"
|
||||||
structurePath = f"{sysPath}/pkg/structure"
|
structurePath = f"{sysPath}/pkg/structure"
|
||||||
protobufPath = f"{sysPath}/protobuf"
|
protobufPath = f"{sysPath}/protobuf"
|
||||||
storagePath = f"{sysPath}/storage"
|
storagePath = f"{sysPath}/storage"
|
||||||
middlePath = f"{sysPath}/middleware"
|
middlePath = f"{sysPath}/plugins"
|
||||||
|
|
||||||
def go_fmt(path: str):
|
def go_fmt(path: str):
|
||||||
os.system(f"go fmt {path}")
|
os.system(f"go fmt {path}")
|
||||||
|
|
Loading…
Reference in New Issue