Skip to content

Commit

Permalink
Merge pull request #52 from EcoMarket-CUK/feature/#51
Browse files Browse the repository at this point in the history
[feature/#51] return 값 ApiResponse로 래핑
  • Loading branch information
veronees authored Nov 11, 2024
2 parents b1838f3 + 4373d59 commit 65fcfad
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.api.jaebichuri.member.controller;

import com.api.jaebichuri.global.response.ApiResponse;
import com.api.jaebichuri.member.dto.MemberInfoRequestDto;
import com.api.jaebichuri.member.entity.Member;
import com.api.jaebichuri.member.service.MemberService;
Expand All @@ -26,9 +27,9 @@ public class MemberController {

@PostMapping("/info")
@Operation(summary = "사용자 추가 정보 입력 API")
public ResponseEntity<String> saveMemberInfo(@AuthenticationPrincipal Member member,
public ResponseEntity<ApiResponse<String>> saveMemberInfo(@AuthenticationPrincipal Member member,
@Valid @RequestBody MemberInfoRequestDto requestDto) {
memberService.saveMemberInfo(member, requestDto);
return ResponseEntity.ok("사용자 정보 저장 완료");
return ResponseEntity.ok(ApiResponse.onSuccess("사용자 정보 저장 완료"));
}
}

0 comments on commit 65fcfad

Please sign in to comment.