提交 v1.3.0 beta

This commit is contained in:
dushixiang
2022-10-23 20:05:13 +08:00
parent 4ff4d37442
commit 112435199a
329 changed files with 18340 additions and 58458 deletions

View File

@ -2,8 +2,8 @@ package repository
import (
"context"
"next-terminal/server/common/nt"
"next-terminal/server/constant"
"next-terminal/server/env"
"gorm.io/gorm"
@ -13,7 +13,7 @@ type baseRepository struct {
}
func (b *baseRepository) GetDB(c context.Context) *gorm.DB {
db, ok := c.Value(constant.DB).(*gorm.DB)
db, ok := c.Value(nt.DB).(*gorm.DB)
if !ok {
return env.GetDB()
}