Skip to content

Commit

Permalink
♻️ Fix: 일부 변수명 및 주석 수정(#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
win-luck committed Oct 15, 2023
1 parent 4a889e3 commit 16f6358
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public ApiResponse<Long> saveUser(CreateUserDto createUserDto) {

// 회원 기본정보 조회
@Operation(summary = "[프로필] 회원 기본정보 조회", description = "회원 기본정보를 조회합니다.")
@GetMapping("{userId}/info/simple/")
@GetMapping("{userId}/info/simple")
public ApiResponse<ResponseSimpleUserDto> getSimpleUserInfo(@PathVariable Long userId) {
return ApiResponse.success(userService.getSimpleUserInfo(userId), ResponseCode.USER_CREATE_SUCCESS.getMessage());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 16f6358

Please sign in to comment.