mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
tag
This commit is contained in:
parent
dbdb516f3c
commit
c39f5a27b2
@ -78,7 +78,7 @@ func (s *officeServer) GetUserTags(_ context.Context, req *pbOffice.GetUserTagsR
|
||||
resp.CommonResp.ErrCode = constant.ErrDB.ErrCode
|
||||
return resp, nil
|
||||
}
|
||||
log.NewDebug(req.OperationID, utils.GetSelfFuncName(), "tags: ", tags)
|
||||
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "tags: ", tags)
|
||||
for _, v := range tags {
|
||||
tag := &pbOffice.Tag{
|
||||
TagID: v.TagID,
|
||||
|
@ -80,7 +80,7 @@ func GetUserNameByUserID(userID string) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
var userName string
|
||||
err = dbConn.Table("users").Select("name").Where("user_id=?", userID).Find(&userName).Error
|
||||
err = dbConn.Table("users").Select("name").Where("user_id=?", userID).First(&userName).Error
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user