style(service): refactor global dependencies to use local variables
This commit is contained in:
1 parent
0f16f61ab3
commit
403d9c2233
13 files changed
+213
-198
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user