mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
organization
This commit is contained in:
parent
d949ee0239
commit
c9d7c20871
@ -194,6 +194,10 @@ func (s *organizationServer) UpdateOrganizationUser(ctx context.Context, req *rp
|
|||||||
}
|
}
|
||||||
organizationUser := db.OrganizationUser{}
|
organizationUser := db.OrganizationUser{}
|
||||||
utils.CopyStructFields(&organizationUser, req.OrganizationUser)
|
utils.CopyStructFields(&organizationUser, req.OrganizationUser)
|
||||||
|
if req.OrganizationUser.Birth != 0 {
|
||||||
|
organizationUser.Birth = utils.UnixSecondToTime(int64(req.OrganizationUser.Birth))
|
||||||
|
}
|
||||||
|
|
||||||
log.Debug(req.OperationID, "src ", *req.OrganizationUser, "dst ", organizationUser)
|
log.Debug(req.OperationID, "src ", *req.OrganizationUser, "dst ", organizationUser)
|
||||||
err := imdb.UpdateOrganizationUser(&organizationUser, nil)
|
err := imdb.UpdateOrganizationUser(&organizationUser, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user