file 파라미터명 변경

This commit is contained in:
yoon 2025-01-24 10:00:53 +09:00
parent a479a60449
commit ea9870be56
2 changed files with 5 additions and 5 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 = registerService.register(profile, map); int member = registerService.register(memberPrf, map);
return ApiResponse.ok(member); return ApiResponse.ok(member);
} }

View File

@ -40,9 +40,9 @@ public class RegisterService {
* @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);
// 비밀번호 암호화 저장 // 비밀번호 암호화 저장
@ -53,7 +53,7 @@ public class RegisterService {
map.put("memberRol", "ROLE_MEMBER"); map.put("memberRol", "ROLE_MEMBER");
map.put("memberPos", 500107); map.put("memberPos", 500107);
map.put("memberTkn", "Null"); map.put("memberTkn", "Null");
map.put("memberPrm", "N"); map.put("memberPrm", "Y");
map.put("memberDel", "N"); map.put("memberDel", "N");
map.put("memberLea", "N"); map.put("memberLea", "N");
map.put("memberRdt", LocalDateTime.now()); map.put("memberRdt", LocalDateTime.now());