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 d75d1f57e4
commit 42c9cc61ab

@ -13,12 +13,11 @@ type UserGorm struct {
}
func NewUserGorm(db *gorm.DB) relation.UserModelInterface {
return &UserGorm{DB: db.Model(&relation.UserModel{})}
return &UserGorm{DB: db}
}
func (u *UserGorm) db() *gorm.DB {
newDB := *u.DB
return &newDB
return u.DB.Model(&relation.UserModel{})
}
// 插入多条

Loading…
Cancel
Save