|
|
|
@ -171,6 +171,7 @@ func (s *organizationServer) CreateOrganizationUser(ctx context.Context, req *rp
|
|
|
|
|
}
|
|
|
|
|
organizationUser := db.OrganizationUser{}
|
|
|
|
|
utils.CopyStructFields(&organizationUser, req.OrganizationUser)
|
|
|
|
|
organizationUser.Birth = utils.UnixSecondToTime(int64(req.OrganizationUser.Birth))
|
|
|
|
|
log.Debug(req.OperationID, "src ", *req.OrganizationUser, "dst ", organizationUser)
|
|
|
|
|
err := imdb.CreateOrganizationUser(&organizationUser)
|
|
|
|
|
if err != nil {
|
|
|
|
|