file 명 변경
This commit is contained in:
parent
dac68fc3eb
commit
4795be7748
@ -97,8 +97,8 @@ public class UserController {
|
||||
* @throws RuntimeException 파일 업로드 실패 시
|
||||
*/
|
||||
@PostMapping("/join")
|
||||
public ApiResponse<Integer> register(@RequestParam("profile") MultipartFile profile, @ReqMap MapDto map) {
|
||||
int member = netmemberservice.register(profile, map);
|
||||
public ApiResponse<Integer> register(@RequestParam("memberPrf") MultipartFile memberPrf, @ReqMap MapDto map) {
|
||||
int member = netmemberservice.register(memberPrf, map);
|
||||
return ApiResponse.ok(member);
|
||||
}
|
||||
|
||||
|
||||
@ -41,9 +41,9 @@ public class netmemberService {
|
||||
* @param map
|
||||
* @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);
|
||||
|
||||
// 비밀번호 암호화 및 저장
|
||||
|
||||
Loading…
Reference in New Issue
Block a user