organization

pull/218/head
skiffer-git 3 years ago
parent 803d0c2ae2
commit a981d1082a

@ -194,6 +194,10 @@ func (s *organizationServer) UpdateOrganizationUser(ctx context.Context, req *rp
}
organizationUser := db.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)
err := imdb.UpdateOrganizationUser(&organizationUser, nil)
if err != nil {

Loading…
Cancel
Save