diff --git a/src/main/java/com/diareat/diareat/user/controller/UserController.java b/src/main/java/com/diareat/diareat/user/controller/UserController.java index 5024b92..66693b6 100644 --- a/src/main/java/com/diareat/diareat/user/controller/UserController.java +++ b/src/main/java/com/diareat/diareat/user/controller/UserController.java @@ -28,7 +28,7 @@ public ApiResponse saveUser(CreateUserDto createUserDto) { // 회원 기본정보 조회 @Operation(summary = "[프로필] 회원 기본정보 조회", description = "회원 기본정보를 조회합니다.") - @GetMapping("{userId}/info/simple/") + @GetMapping("{userId}/info/simple") public ApiResponse getSimpleUserInfo(@PathVariable Long userId) { return ApiResponse.success(userService.getSimpleUserInfo(userId), ResponseCode.USER_CREATE_SUCCESS.getMessage()); } diff --git a/src/main/java/com/diareat/diareat/user/dto/ResponseSearchUserDto.java b/src/main/java/com/diareat/diareat/user/dto/ResponseSearchUserDto.java index ef4a23a..811fa92 100644 --- a/src/main/java/com/diareat/diareat/user/dto/ResponseSearchUserDto.java +++ b/src/main/java/com/diareat/diareat/user/dto/ResponseSearchUserDto.java @@ -10,7 +10,7 @@ public class ResponseSearchUserDto { private Long userId; private String name; private String image; - private boolean isFollow; // 유저가 이미 팔로우한 유저인지 확인 + private boolean follow; // 유저가 이미 팔로우한 유저인지 확인 public static ResponseSearchUserDto of(Long userId, String name, String image, boolean isFollow) { return new ResponseSearchUserDto(userId, name, image, isFollow); diff --git a/src/main/java/com/diareat/diareat/user/service/UserService.java b/src/main/java/com/diareat/diareat/user/service/UserService.java index 80db78a..22e85ef 100644 --- a/src/main/java/com/diareat/diareat/user/service/UserService.java +++ b/src/main/java/com/diareat/diareat/user/service/UserService.java @@ -56,14 +56,14 @@ public void updateUserInfo(UpdateUserDto updateUserDto) { user.updateUser(updateUserDto.getName(), updateUserDto.getHeight(), updateUserDto.getWeight(), updateUserDto.getAge()); } - // 회원 기준영양소 조회 + // 회원 기준섭취량 조회 @Transactional(readOnly = true) public ResponseUserNutritionDto getUserNutrition(Long userId) { User user = getUserById(userId); return ResponseUserNutritionDto.from(user); } - // 회원 기준영양소 직접 수정 + // 회원 기준섭취량 직접 수정 @Transactional public void updateBaseNutrition(UpdateUserNutritionDto updateUserNutritionDto) { User user = getUserById(updateUserNutritionDto.getUserId());