From 0a34877d950768303eac443489e2f99659527dfe Mon Sep 17 00:00:00 2001 From: CHAE Date: Mon, 2 Oct 2023 18:15:55 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8Feat:=20User=20Entity=20=ED=8C=94?= =?UTF-8?q?=EB=A1=9C=EC=9A=B0=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?(#7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/diareat/diareat/user/domain/User.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/diareat/diareat/user/domain/User.java b/src/main/java/com/diareat/diareat/user/domain/User.java index 6753004..9807cb9 100644 --- a/src/main/java/com/diareat/diareat/user/domain/User.java +++ b/src/main/java/com/diareat/diareat/user/domain/User.java @@ -58,12 +58,19 @@ public static User createUser(String name, String keyCode, int height, int weigh } // 회원정보 수정 - public void updateUser(String name, int height, int weight, int gender, int age, BaseNutrition baseNutrition) { + public void updateUser(String name, int height, int weight, int age, BaseNutrition baseNutrition) { this.name = name; this.height = height; this.weight = weight; - this.gender = gender; this.age = age; this.baseNutrition = baseNutrition; } + + public void followUser(User user) { + this.followings.add(user); + } + + public void unfollowUser(User user) { + this.followings.remove(user); + } }