mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 19:22:46 +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 {
|
func NewUserGorm(db *gorm.DB) relation.UserModelInterface {
|
||||||
return &UserGorm{DB: db.Model(&relation.UserModel{})}
|
return &UserGorm{DB: db}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (u *UserGorm) db() *gorm.DB {
|
func (u *UserGorm) db() *gorm.DB {
|
||||||
newDB := *u.DB
|
return u.DB.Model(&relation.UserModel{})
|
||||||
return &newDB
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 插入多条
|
// 插入多条
|
||||||
|
Loading…
x
Reference in New Issue
Block a user