mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 03:26:57 +08:00
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:
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…
x
Reference in New Issue
Block a user