Interface ReportMapper


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

    • createReportRequestToReport

      Report createReportRequestToReport(User user, User reportedUser, CreateReportRequest createReportRequest, ReportType reportType, ReportReason reportReason)
      CreateReportRequest를 Report 엔티티로 변환
      Parameters:
      user - 사용자
      createReportRequest - 신고 생성 요청
      reportType - 신고 타입
      reportReason - 신고 원인
      Returns:
      Report 엔티티
    • toReportResponse

      ReportResponse toReportResponse(Report savedReport)
      Report를 ReportResponse로 변환
      Parameters:
      savedReport - 신고
      Returns:
      ReportResponse
    • toReportTypeResponseList

      List<ReportTypeResponse> toReportTypeResponseList(List<ReportType> reportTypes)
      ReportType을 ReportTypeResponse로 변환
      Parameters:
      reportTypes - 신고 타입
      Returns:
      ReportTypeResponse
    • toReportTypeResponse

      ReportTypeResponse toReportTypeResponse(ReportType reportType)
      ReportType을 ReportTypeResponse로 변환
      Parameters:
      reportType - 신고 타입
      Returns:
      ReportTypeResponse
    • toReportReasonResponseList

      List<ReportReasonResponse> toReportReasonResponseList(List<ReportReason> reportReasons)
      ReportReason을 ReportReasonResponse로 변환
      Parameters:
      reportReasons - 신고 원인
      Returns:
      ReportReasonResponse
    • toReportReasonResponse

      ReportReasonResponse toReportReasonResponse(ReportReason reportReason)
      ReportReason을 ReportReasonResponse로 변환
      Parameters:
      reportReason - 신고 원인
      Returns:
      ReportReasonResponse