Skip to content

Commit

Permalink
feat: 회원 정보 수정 컨트롤러의 매개변수 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
passionryu committed Aug 31, 2024
1 parent 38f3932 commit 53165f2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package KKSC.page.domain.member.controller;

import KKSC.page.domain.member.dto.request.MemberRequest;
import KKSC.page.domain.member.dto.request.ProfileRequest;
import KKSC.page.domain.member.dto.response.MemberResponse;
import KKSC.page.domain.member.exception.MemberException;
import KKSC.page.domain.member.service.MemberService;
Expand Down Expand Up @@ -42,8 +43,8 @@ public ResponseVO<String> retire(@PathVariable String email) {
// 회원정보 수정
@Operation(summary = " 회원정보 수정 ", description = " 회원정보 수정 ")
@PutMapping("/")
public ResponseVO<String> update(@RequestBody @Valid MemberRequest request) {
memberService.update(request);
public ResponseVO<String> update(@RequestBody @Valid ProfileRequest profileRequest ,@RequestBody @Valid MemberRequest memberRequest) {
memberService.update(profileRequest,memberRequest);
return new ResponseVO<>("수정 완료");
}

Expand Down

0 comments on commit 53165f2

Please sign in to comment.