mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 02:58:26 +08:00
log update
This commit is contained in:
parent
8d8c5071b5
commit
4680b1e6be
@ -2,6 +2,7 @@ package relation
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"OpenIM/pkg/common/db/table/relation"
|
"OpenIM/pkg/common/db/table/relation"
|
||||||
|
"OpenIM/pkg/common/log"
|
||||||
"OpenIM/pkg/utils"
|
"OpenIM/pkg/utils"
|
||||||
"context"
|
"context"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
@ -32,6 +33,7 @@ func (u *UserGorm) Update(ctx context.Context, users []*relation.UserModel) (err
|
|||||||
|
|
||||||
// 获取指定用户信息 不存在,也不返回错误
|
// 获取指定用户信息 不存在,也不返回错误
|
||||||
func (u *UserGorm) Find(ctx context.Context, userIDs []string) (users []*relation.UserModel, err error) {
|
func (u *UserGorm) Find(ctx context.Context, userIDs []string) (users []*relation.UserModel, err error) {
|
||||||
|
log.ZDebug(ctx, "userIDs", userIDs)
|
||||||
err = utils.Wrap(u.DB.Where("user_id in ?", userIDs).Find(&users).Error, "")
|
err = utils.Wrap(u.DB.Where("user_id in ?", userIDs).Find(&users).Error, "")
|
||||||
return users, err
|
return users, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user