file 명 변경

This commit is contained in:
yoon 2025-01-24 10:56:33 +09:00
parent dac68fc3eb
commit 4795be7748
2 changed files with 4 additions and 4 deletions

View File

@ -97,8 +97,8 @@ public class UserController {
* @throws RuntimeException 파일 업로드 실패 * @throws RuntimeException 파일 업로드 실패
*/ */
@PostMapping("/join") @PostMapping("/join")
public ApiResponse<Integer> register(@RequestParam("profile") MultipartFile profile, @ReqMap MapDto map) { public ApiResponse<Integer> register(@RequestParam("memberPrf") MultipartFile memberPrf, @ReqMap MapDto map) {
int member = netmemberservice.register(profile, map); int member = netmemberservice.register(memberPrf, map);
return ApiResponse.ok(member); return ApiResponse.ok(member);
} }

View File

@ -41,9 +41,9 @@ public class netmemberService {
* @param map * @param map
* @return * @return
*/ */
public int register(MultipartFile profile, MapDto map) { public int register(MultipartFile memberPrf, MapDto map) {
// 프로필 이미지 저장, 저장된 경로 가져옴 // 프로필 이미지 저장, 저장된 경로 가져옴
String profilePath = fileService.uploadFile(profile, "profiles"); String profilePath = fileService.uploadFile(memberPrf, "profiles");
map.put("memberPrf", profilePath); map.put("memberPrf", profilePath);
// 비밀번호 암호화 저장 // 비밀번호 암호화 저장