diff --git a/src/main/java/com/brainpix/profile/controller/ProfileController.java b/src/main/java/com/brainpix/profile/controller/ProfileController.java index 6392fd81..2a201a53 100644 --- a/src/main/java/com/brainpix/profile/controller/ProfileController.java +++ b/src/main/java/com/brainpix/profile/controller/ProfileController.java @@ -2,15 +2,10 @@ import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; - import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; -import org.springframework.web.multipart.MultipartFile; - import com.brainpix.api.ApiResponse; import com.brainpix.profile.dto.CompanyProfileResponseDto; @@ -18,14 +13,11 @@ import com.brainpix.profile.dto.IndividualProfileResponseDto; import com.brainpix.profile.dto.IndividualProfileUpdateDto; import com.brainpix.profile.service.ProfileService; - -import com.brainpix.security.authorization.AllUser; import com.brainpix.security.authorization.Company; import com.brainpix.security.authorization.Individual; import com.brainpix.security.authorization.UserId; import io.swagger.v3.oas.annotations.Operation; - import lombok.RequiredArgsConstructor; @RestController @@ -43,7 +35,6 @@ public ResponseEntity> getIndividualPr return ResponseEntity.ok(ApiResponse.success(profile)); } - @Operation(summary = "기업 사용자 프로필 조회", description = "현재 로그인한 기업 사용자의 프로필을 조회합니다.") @Company @GetMapping("/company") @@ -72,7 +63,7 @@ public ResponseEntity> updateCompanyProfile( return ResponseEntity.ok(ApiResponse.success(null)); } - @Operation(summary = "프로필 이미지 업로드", description = "현재 로그인한 사용자의 프로필 이미지를 업로드합니다.") + /*@Operation(summary = "프로필 이미지 업로드", description = "현재 로그인한 사용자의 프로필 이미지를 업로드합니다.") @AllUser @PostMapping("/{userId}/upload-profile-image") public ResponseEntity> uploadProfileImage( @@ -82,5 +73,5 @@ public ResponseEntity> uploadProfileImage( String imagePath = "/path/to/uploaded/image.jpg"; // 예시 String savedPath = profileService.uploadProfileImage(userId, imagePath); return ResponseEntity.ok(ApiResponse.success(savedPath)); - } + }*/ } diff --git a/src/main/java/com/brainpix/profile/service/ProfileService.java b/src/main/java/com/brainpix/profile/service/ProfileService.java index 652ebdca..23923695 100644 --- a/src/main/java/com/brainpix/profile/service/ProfileService.java +++ b/src/main/java/com/brainpix/profile/service/ProfileService.java @@ -140,10 +140,10 @@ public CompanyProfileResponseDto getCompanyProfile(Long userId) { return myconverter.toCompanyDto((Company)user); } - public String uploadProfileImage(Long userId, String imagePath) { + /*public String uploadProfileImage(Long userId, String imagePath) { User user = userRepository.findById(userId) .orElseThrow(() -> new BrainPixException(ProfileErrorCode.USER_NOT_FOUND)); user.updateProfileImage(imagePath); return imagePath; - } + }*/ }