file 파라미터명 변경
This commit is contained in:
parent
a479a60449
commit
ea9870be56
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user