style(service): refactor global dependencies to use local variables

This commit is contained in:
lejianwen committed 2025-02-26 19:15:38 +08:00
1 parent 0f16f61ab3
commit 403d9c2233
13 files changed
+213 -198

No files matched your search

+3
View File
@@ -164,6 +164,9 @@ func InitGlobal() {
global.Jwt = jwt.NewJwt(global.Config.Jwt.Key, global.Config.Jwt.ExpireDuration)
//locker
global.Lock = lock.NewLocal()
//service
service.New(&global.Config, global.DB, global.Logger, global.Jwt, global.Lock)
}
func DatabaseAutoUpdate() {
version := 262