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

# Conflicts:
#	pkg/common/mw/rpc_server_interceptor.go
test-errcode
wangchuxiao 2 years ago
parent 14e3e561ea
commit d5b721be30

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

Loading…
Cancel
Save