mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-23 18:00:32 +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
14e3e561ea
commit
d5b721be30
@ -9,11 +9,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type UserGorm struct {
|
type UserGorm struct {
|
||||||
DB *gorm.DB
|
DB gorm.DB
|
||||||
}
|
}
|
||||||
|
|
||||||
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.Model(&relation.UserModel{})}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 插入多条
|
// 插入多条
|
||||||
|
Loading…
x
Reference in New Issue
Block a user