mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-12 22:59:03 +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
8dea2cacf4
commit
becd3eb8f1
@ -16,9 +16,9 @@ func NewUserGorm(db *gorm.DB) relation.UserModelInterface {
|
|||||||
return &UserGorm{DB: db.Model(&relation.UserModel{})}
|
return &UserGorm{DB: db.Model(&relation.UserModel{})}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (u *UserGorm) db() gorm.DB {
|
func (u *UserGorm) db() *gorm.DB {
|
||||||
newDB := *u.DB
|
newDB := *u.DB
|
||||||
return newDB
|
return &newDB
|
||||||
}
|
}
|
||||||
|
|
||||||
// 插入多条
|
// 插入多条
|
||||||
|
Loading…
x
Reference in New Issue
Block a user