Skip to content

Commit

Permalink
♻️:: 자잘한거 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyoil2 committed Dec 13, 2023
1 parent 2cbfebc commit 231abc6
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.example.asterbackend.domain.admin.survey.service.UpdateSurveyService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.Valid;
import java.util.List;
Expand Down Expand Up @@ -51,7 +50,7 @@ public void deleteSurvey(@PathVariable Long surveyId) {

@PostMapping("/storage")
public void saveSurveyStorage(@RequestBody @Valid SurveyRequest request) {
saveSurveyStorageService.saveImageSurveyStorage(request);
saveSurveyStorageService.saveSurveyStorage(request);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class SaveSurveyStorageService {

private final SurveyStorageRepository surveyStorageRepository;

public void saveImageSurveyStorage(SurveyRequest request) {
public void saveSurveyStorage(SurveyRequest request) {

surveyStorageRepository.save(
SurveyStorage.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

import com.example.asterbackend.domain.user.auth.presentation.dto.request.LoginRequest;
import com.example.asterbackend.domain.user.auth.presentation.dto.request.SignupRequest;
import com.example.asterbackend.domain.user.auth.presentation.dto.response.MyInfoResponse;
import com.example.asterbackend.domain.user.auth.presentation.dto.response.TokenResponse;
import com.example.asterbackend.domain.user.auth.service.LoginService;
import com.example.asterbackend.domain.user.user.service.MyInfoService;
import com.example.asterbackend.domain.user.auth.service.SignupService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.List;

@Getter
@AllArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class SurveyStorageController {

@PostMapping()
public void saveSurveyStorage(@RequestBody @Valid SurveyRequest request) {
saveSurveyStorageService.saveImageSurveyStorage(request);
saveSurveyStorageService.saveSurveyStorage(request);
}

@GetMapping()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
package com.example.asterbackend.domain.user.user.presentation;

import com.example.asterbackend.domain.user.auth.presentation.dto.response.MyInfoResponse;
import com.example.asterbackend.domain.user.user.presentation.dto.request.BothMatchRequest;
import com.example.asterbackend.domain.user.user.presentation.dto.request.WhoMatchRequest;
import com.example.asterbackend.domain.user.user.service.BothMatchService;
import com.example.asterbackend.domain.user.user.service.DeleteUserService;
import com.example.asterbackend.domain.user.user.service.MyInfoService;
import com.example.asterbackend.domain.user.user.service.WhoMatchService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@RestController
@RequiredArgsConstructor
@RequestMapping("/aster/user")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.example.asterbackend.domain.user.schoolClass.facade.SchoolClassFacade;
import com.example.asterbackend.domain.user.user.entity.User;
import com.example.asterbackend.domain.user.user.facade.UserFacade;
import com.example.asterbackend.domain.user.user.presentation.dto.request.BothMatchRequest;
import com.example.asterbackend.domain.user.user.repository.UserRepository;
import com.example.asterbackend.global.exception.user.UserNotFoundException;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.example.asterbackend.domain.user.schoolClass.facade.SchoolClassFacade;
import com.example.asterbackend.domain.user.user.entity.User;
import com.example.asterbackend.domain.user.user.facade.UserFacade;
import com.example.asterbackend.domain.user.user.presentation.dto.request.WhoMatchRequest;
import com.example.asterbackend.domain.user.user.repository.UserRepository;
import com.example.asterbackend.global.exception.user.UserNotFoundException;
import lombok.RequiredArgsConstructor;
Expand Down

0 comments on commit 231abc6

Please sign in to comment.