Interface TeamMapper


public interface TeamMapper
TeamMapper는 Team 엔티티와 관련된 데이터 변환 기능을 제공.
  • Method Details

    • createTeamRequestToTeam

      Team createTeamRequestToTeam(CreateTeamRequest createTeamRequest, User user)
      CreateTeamRequest를 Team 엔티티로 변환.
      Parameters:
      createTeamRequest - CreateTeamRequest
      user - User
      Returns:
      Team
    • teamToTeamResponse

      TeamResponse teamToTeamResponse(Team team)
      Team을 TeamResponse로 변환.
      Parameters:
      team - Team
      Returns:
      TeamResponse
    • updateTeamRequestToTeam

      void updateTeamRequestToTeam(UpdateTeamRequest updateTeamRequest, Team team)
      UpdateTeamRequest를 Team 엔티티로 변환.
      Parameters:
      updateTeamRequest - UpdateTeamRequest
      team - Team
    • teamToSearchTeamsResponse

      SearchTeamsResponse teamToSearchTeamsResponse(Team team)
      팀을 SearchTeamsResponse 응답으로 변환.
      Parameters:
      team - Team
      Returns:
      SearchTeamsResponse
    • teamsToSearchTeamsResponse

      List<SearchTeamsResponse> teamsToSearchTeamsResponse(List<Team> teams)
    • createTeamUser

      default TeamUser createTeamUser(User user, Team team)
      팀 사용자를 생성.
      Parameters:
      user - User
      team - Team
      Returns:
      TeamUser
    • createRequestTeamUser

      default TeamUser createRequestTeamUser(User user, Team team)
      요청된 팀 사용자를 생성.
      Parameters:
      user - User
      team - Team
      Returns:
      TeamUser
    • userToSearchUserResponse

      SearchUserResponse userToSearchUserResponse(User user)
      사용자를 SearchUserResponse으로 변환.
      Parameters:
      user - User
      Returns:
      SearchUserResponse
    • userToTeamSearchUserResponse

      SearchTeamUserResponse userToTeamSearchUserResponse(User user)
    • teamToSearchTeamResponse

      SearchTeamResponse teamToSearchTeamResponse(Team team, SearchUserResponse leader)
      팀을 SearchTeamResponse 으로 변환.
      Parameters:
      team - Team
      leader - SearchUserResponse
      Returns:
      SearchTeamResponse
    • createTeamPost

      TeamPost createTeamPost(Team team, CreateTeamPostRequest createTeamPostRequest)
      팀 게시글을 생성.
      Parameters:
      team - Team
      createTeamPostRequest - CreateTeamPostRequest
      Returns:
      TeamPost
    • teamPostToTeamPostResponse

      TeamPostResponse teamPostToTeamPostResponse(TeamPost teamPost)
      팀 게시글을 TeamPostResponse로 변환.
      Parameters:
      teamPost - TeamPost
      Returns:
      TeamPostResponse
    • updateTeamPostRequestToTeamPost

      void updateTeamPostRequestToTeamPost(UpdateTeamPostRequest updateTeamPostRequest, TeamPost teamPost)
      UpdateTeamPostRequest를 TeamPost로 변환.
      Parameters:
      updateTeamPostRequest - UpdateTeamPostRequest
      teamPost - TeamPost
    • teamPostToSearchTeamPostResponse

      SearchTeamPostResponse teamPostToSearchTeamPostResponse(TeamPost teamPost, Team team, User user)
      팀 게시글을 SearchTeamPostResponse로 변환.
      Parameters:
      teamPost - TeamPost
      team - Team
      user - User
      Returns:
      SearchTeamPostResponse
    • toTeamComment

      TeamComment toTeamComment(CreateCommentRequest createCommentRequest, User user, TeamPost teamPost)
      CreateCommentRequest를 TeamComment로 변환.
      Parameters:
      createCommentRequest - CreateCommentRequest
      user - User
      teamPost - TeamPost
      Returns:
      TeamComment
    • toTeamCommentResponse

      TeamCommentResponse toTeamCommentResponse(TeamComment teamComment)
      팀 댓글을 TeamCommentResponse로 변환.
      Parameters:
      teamComment - TeamComment
      Returns:
      TeamCommentResponse
    • updateTeamCommentRequestToTeamComment

      void updateTeamCommentRequestToTeamComment(UpdateCommentRequest updateCommentRequest, TeamComment teamComment)
      updateCommentRequest를 TeamComment로 업데이트.
      Parameters:
      updateCommentRequest - UpdateCommentRequest
      teamComment - TeamComment
    • toTeamReplyComment

      TeamReplyComment toTeamReplyComment(CreateReplyCommentRequest createReplyCommentRequest, User user, TeamComment teamComment)
      CreateReplyCommentRequest를 TeamReplyComment로 변환.
      Parameters:
      createReplyCommentRequest - CreateReplyCommentRequest
      user - User
      teamComment - TeamComment
      Returns:
      TeamReplyComment
    • toTeamReplyCommentResponse

      TeamReplyCommentResponse toTeamReplyCommentResponse(TeamReplyComment teamReplyComment)
      팀 대댓글을 TeamReplyCommentResponse로 변환.
      Parameters:
      teamReplyComment - TeamReplyComment
      Returns:
      TeamReplyCommentResponse
    • updateTeamReplyCommentRequestToTeamReplyComment

      void updateTeamReplyCommentRequestToTeamReplyComment(UpdateCommentRequest updateCommentRequest, TeamReplyComment teamReplyComment)
      updateCommentRequest를 TeamReplyComment로 업데이트.
      Parameters:
      updateCommentRequest - UpdateCommentRequest
      teamReplyComment - TeamReplyComment
    • toCommentWithRepliesResponse

      CommentWithRepliesResponse toCommentWithRepliesResponse(TeamComment teamComment)
      TeamComment를 CommentWithRepliesResponse로 변환합니다.
      Parameters:
      teamComment - TeamComment
      Returns:
      CommentWithRepliesResponse
    • toSearchReplyCommentResponse

      SearchReplyCommentResponse toSearchReplyCommentResponse(TeamReplyComment teamReplyComment)
      TeamReplyComment를 SearchReplyCommentResponse로 변환합니다.
      Parameters:
      teamReplyComment - TeamReplyComment
      Returns:
      SearchReplyCommentResponse
    • filterActiveReplies

      default List<SearchReplyCommentResponse> filterActiveReplies(List<TeamReplyComment> replies)
      TeamComment 목록을 CommentResponse 목록으로 변환.
      Parameters:
      replies - List
      Returns:
      List
    • toSearchReplyCommentResponseList

      List<SearchReplyCommentResponse> toSearchReplyCommentResponseList(List<TeamComment> replies)
      TeamComment 목록을 CommentResponse 목록으로 변환.
      Parameters:
      replies - List
      Returns:
      List
    • toCommentWithRepliesResponseList

      List<CommentWithRepliesResponse> toCommentWithRepliesResponseList(List<TeamComment> comments)
      TeamComment 목록을 CommentWithRepliesResponse 목록으로 변환합니다.
      Parameters:
      comments - List
      Returns:
      List