From d5b721be307d54b66f6f8a2f3c39ad1fc12b0c49 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Wed, 15 Mar 2023 16:10:34 +0800 Subject: [PATCH] Merge branch 'errcode' of github.com:OpenIMSDK/Open-IM-Server into errcode # Conflicts: # pkg/common/mw/rpc_server_interceptor.go --- pkg/common/db/relation/user_model.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/common/db/relation/user_model.go b/pkg/common/db/relation/user_model.go index 825ea6d48..5ed6e73b8 100644 --- a/pkg/common/db/relation/user_model.go +++ b/pkg/common/db/relation/user_model.go @@ -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{})} } // 插入多条