Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

불필요 import 제거 #140

Merged
merged 2 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer;
import org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer;
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.kusithm.meetupd.common.error.dto;

import com.kusithm.meetupd.common.error.ApplicationException;
import com.kusithm.meetupd.common.error.ErrorCode;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
import com.kusithm.meetupd.common.error.ErrorCode;
import com.kusithm.meetupd.common.error.UnauthorizedException;
import io.jsonwebtoken.*;
import jakarta.servlet.http.HttpServletRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import javax.crypto.spec.SecretKeySpec;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
import com.kusithm.meetupd.domain.contest.dto.response.GetMainRecommendationResponseDto;
import com.kusithm.meetupd.domain.contest.service.ContestService;
import lombok.RequiredArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDate;
import java.util.List;

@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import com.kusithm.meetupd.domain.contest.entity.Contest;
import com.kusithm.meetupd.domain.contest.entity.ContestType;
import jdk.jfr.ContentType;
import lombok.Builder;
import lombok.Getter;

Expand All @@ -23,8 +22,6 @@ public class FindContestsResponseDto {

private String company;

// private List<Integer> types;

private List<String> types;

private List<String> images;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;

import static com.kusithm.meetupd.common.error.ErrorCode.USER_REVIEW_NOT_FOUND;
import static com.kusithm.meetupd.domain.contest.dto.response.FindContestsResponseDto.createListOf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.thymeleaf.spring6.SpringTemplateEngine;
import org.thymeleaf.context.Context;
import org.thymeleaf.spring6.SpringTemplateEngine;

import java.io.UnsupportedEncodingException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
import com.kusithm.meetupd.domain.fileUpload.dto.response.FileUploadResponse;
import com.kusithm.meetupd.domain.fileUpload.service.AwsS3Service;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
Expand All @@ -21,4 +24,4 @@ public FileUploadResponse uploadFile(
return awsS3Service.uploadFile(images);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import com.amazonaws.services.s3.model.CannedAccessControlList;
import com.amazonaws.services.s3.model.ObjectMetadata;
import com.amazonaws.services.s3.model.PutObjectRequest;
import com.amazonaws.services.s3.model.PutObjectResult;
import com.kusithm.meetupd.common.error.ErrorCode;
import com.kusithm.meetupd.common.error.FileUploadFailedException;
import com.kusithm.meetupd.domain.fileUpload.dto.response.FileUploadResponse;
import com.kusithm.meetupd.domain.fileUpload.entity.Image;
Expand Down Expand Up @@ -57,4 +55,4 @@ public FileUploadResponse uploadFile(List<MultipartFile> images) {

return new FileUploadResponse(fileUrls);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.kusithm.meetupd.domain.review.dto.request;

import lombok.Builder;
import lombok.Getter;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,9 @@ public class UserReviewedTeam {
@Column(name = "user_reviewed_team_id")
private Long id;

// TODO : User 확실하게 생성되면 User ID로 넣기
// @ManyToOne
// @JoinColumn(name = "user_id")
// private User user;
private Long userId;

// TODO : Team 생성되면 Team ID로 넣기
// @ManyToOne
// @JoinColumn(name = "team_id")
// private Team team;
private Long teamId;
//
// @CreatedDate
// @Column(name = "reviewed_at", updatable = false)
// @Convert(converter = LocalDateTimeConverter.class)
// private LocalDateTime reviewedAt;

public static UserReviewedTeam of(Long userId, Long teamId) {
return UserReviewedTeam.builder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.kusithm.meetupd.domain.review.entity.inner;

import com.kusithm.meetupd.domain.review.dto.request.UploadReviewRequestDto;
import com.kusithm.meetupd.domain.review.dto.request.UploadReviewRequestDto.SelectKeywordDto;
import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.kusithm.meetupd.domain.review.entity.inner;

import com.kusithm.meetupd.domain.review.dto.request.UploadReviewRequestDto;
import com.kusithm.meetupd.domain.review.dto.request.UploadReviewRequestDto.SelectTeamCultureDto;
import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import com.kusithm.meetupd.domain.review.entity.NonUserReview;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface NonUserReviewRepository extends MongoRepository<NonUserReview, String> {

Boolean existsByUserId(Long userId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import com.kusithm.meetupd.domain.review.entity.UserReviewedTeam;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserReviewedTeamRepository extends JpaRepository<UserReviewedTeam, Long> {

Boolean existsByUserIdAndTeamId(Long userId, Long teamId);
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions src/main/java/com/kusithm/meetupd/domain/sample/entity/Sample.java

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@
import com.kusithm.meetupd.common.dto.code.SuccessCode;
import com.kusithm.meetupd.domain.review.dto.request.UpdateTeamProgressRecruitmentRequestDto;
import com.kusithm.meetupd.domain.team.dto.TeamIOpenedResponseDto;
import com.kusithm.meetupd.domain.team.dto.TestDto;
import com.kusithm.meetupd.domain.team.dto.request.*;
import com.kusithm.meetupd.domain.team.dto.response.*;
import com.kusithm.meetupd.domain.team.entity.Team;
import com.kusithm.meetupd.domain.team.service.TeamService;
import com.kusithm.meetupd.domain.user.dto.response.ReviewPageUserResponseDto;
import feign.Response;
import jakarta.mail.MessagingException;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.domain.Page;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.io.UnsupportedEncodingException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.kusithm.meetupd.domain.contest.entity.Contest;
import com.kusithm.meetupd.domain.team.dto.response.ResponseTeamMemeberDto;
import com.kusithm.meetupd.domain.team.dto.response.TeamDetailResponseDto;
import com.kusithm.meetupd.domain.team.entity.Team;
import com.kusithm.meetupd.domain.user.entity.User;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package com.kusithm.meetupd.domain.team.dto.request;

import lombok.*;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;

import java.awt.print.Pageable;

@Getter
@Setter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
import lombok.Builder;
import lombok.Getter;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.time.OffsetDateTime;
import java.time.format.DateTimeFormatter;
import java.util.List;
import java.util.stream.Collectors;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
package com.kusithm.meetupd.domain.team.dto.response;


import com.kusithm.meetupd.domain.team.entity.Team;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.domain.Page;

import java.util.List;

@Setter @Getter
@ToString
public class PageResponseDTO<T> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import lombok.Getter;

import java.util.List;
import java.util.Optional;
import java.util.OptionalInt;
import java.util.stream.Collectors;

@Builder
Expand Down
Loading