作者 yangfu

共创用户修改

@@ -570,7 +570,12 @@ func (userService *UserService) UpdateCooperator(updateCooperatorCommand *comman @@ -570,7 +570,12 @@ func (userService *UserService) UpdateCooperator(updateCooperatorCommand *comman
570 Avatar: updateCooperatorCommand.Avatar, 570 Avatar: updateCooperatorCommand.Avatar,
571 Email: updateCooperatorCommand.Email, 571 Email: updateCooperatorCommand.Email,
572 } 572 }
573 - 573 + user.CooperationInfo = &domain.CooperationInfo{
  574 + CooperationCompany: updateCooperatorCommand.CooperationCompany,
  575 + }
  576 + if !updateCooperatorCommand.CooperationDeadline.IsZero() {
  577 + user.CooperationInfo.CooperationDeadline = updateCooperatorCommand.CooperationDeadline
  578 + }
574 updateUserService, _ := factory.CreatePgUpdateUserService(map[string]interface{}{ 579 updateUserService, _ := factory.CreatePgUpdateUserService(map[string]interface{}{
575 "transactionContext": transactionContext, 580 "transactionContext": transactionContext,
576 }) 581 })