errcode
This commit is contained in:
16
infra/new.go
Normal file
16
infra/new.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package infra
|
||||
|
||||
import (
|
||||
"git.apinb.com/bsm-sdk/core/cache/redis"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
var (
|
||||
DB *gorm.DB
|
||||
RedisCache *redis.RedisClient
|
||||
)
|
||||
|
||||
func New(db *gorm.DB, redisCache *redis.RedisClient) {
|
||||
DB = db
|
||||
RedisCache = redisCache
|
||||
}
|
||||
Reference in New Issue
Block a user