Skip to content

Commit

Permalink
Merge pull request #18 from wagle-wagle-hackathon/shark
Browse files Browse the repository at this point in the history
fix : Refactoring code (Remove Unused Import)
  • Loading branch information
spenshark authored Feb 16, 2024
2 parents c5f3787 + 0dc5a07 commit 2c05099
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 36 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
package umc.beanstalk.choice.controller;

import org.springframework.validation.annotation.Validated;
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 io.swagger.v3.oas.annotations.Operation;
import lombok.RequiredArgsConstructor;
import umc.beanstalk.choice.service.ChoiceQueryService;
import umc.beanstalk.common.apiPayload.ApiResult;

@RestController
@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
package umc.beanstalk.choice.data.dto;

import lombok.Getter;

public class ChoiceResponse {
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import org.springframework.data.repository.query.Param;
import umc.beanstalk.choice.data.domain.Choice;
import umc.beanstalk.question.data.domain.Question;
import umc.beanstalk.user.data.domain.User;

public interface ChoiceRepository extends JpaRepository<Choice, Long> {
Optional<List<Choice>> findAllByQuestionAndGender(Question question, Integer gender);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.util.List;

import umc.beanstalk.choice.data.domain.Choice;
import umc.beanstalk.choice.data.dto.ChoiceResponse;
import umc.beanstalk.question.data.domain.Question;
import umc.beanstalk.question.data.dto.QuestionResponse;
import umc.beanstalk.user.data.domain.User;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@

import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import umc.beanstalk.common.apiPayload.ApiResult;
import umc.beanstalk.question.data.dto.QuestionResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
package umc.beanstalk.question.service;

import org.springframework.stereotype.Service;

import lombok.RequiredArgsConstructor;


public interface QuestionCommandService {
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package umc.beanstalk.question.service;

import java.util.List;

import org.springframework.stereotype.Service;

import lombok.RequiredArgsConstructor;
import umc.beanstalk.question.data.dto.QuestionResponse;

public interface QuestionQueryService {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package umc.beanstalk.question.service;

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

import org.springframework.stereotype.Service;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import umc.beanstalk.result.data.dto.ResponseResultDto;
import umc.beanstalk.result.service.ResultService;

import java.util.List;

@RestController
@RequiredArgsConstructor
@RequestMapping("result")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

import lombok.Builder;
import lombok.Getter;
import umc.beanstalk.result.data.domain.Result;


public class ResponseResultDto {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
package umc.beanstalk.user.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import umc.beanstalk.common.apiPayload.ApiResult;
import umc.beanstalk.user.data.dto.RequestUserDto;
import umc.beanstalk.user.service.UserService;

import java.util.List;
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/umc/beanstalk/user/data/domain/User.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package umc.beanstalk.user.data.domain;

import lombok.*;
import org.apache.catalina.connector.Request;
import umc.beanstalk.result.data.domain.Result;
import umc.beanstalk.user.data.dto.RequestUserDto;
import umc.beanstalk.user.data.dto.ResponseUserDto;

import javax.persistence.*;

Expand Down
2 changes: 0 additions & 2 deletions src/main/java/umc/beanstalk/user/data/dto/RequestUserDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import lombok.Getter;
import umc.beanstalk.user.data.domain.User;

import javax.validation.constraints.NotBlank;

@Getter
@Builder
public class RequestUserDto {
Expand Down

0 comments on commit 2c05099

Please sign in to comment.