Merge branch 'errcode' of github.com:OpenIMSDK/Open-IM-Server into errcode

# Conflicts:
#	pkg/common/mw/rpc_server_interceptor.go
This commit is contained in:
wangchuxiao 2023-03-15 16:10:34 +08:00
parent 14e3e561ea
commit d5b721be30

View File

@ -9,11 +9,11 @@ import (
)
type UserGorm struct {
DB *gorm.DB
DB gorm.DB
}
func NewUserGorm(DB *gorm.DB) relation.UserModelInterface {
return &UserGorm{DB: DB.Model(&relation.UserModel{})}
return &UserGorm{DB: *DB.Model(&relation.UserModel{})}
}
// 插入多条