From 0a3c63130dd8dd752120db19ea543b56d6abed64 Mon Sep 17 00:00:00 2001 From: ahah525 Date: Sun, 30 Oct 2022 17:43:21 +0900 Subject: [PATCH] =?UTF-8?q?#7=20-=20Feat:=20=EA=B4=80=EB=A6=AC=EC=9E=90=20?= =?UTF-8?q?=ED=9A=8C=EC=9B=90=201=EB=AA=85=20=EC=83=9D=EC=84=B1=20initData?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/mutbooks/app/base/initData/InitDataBefore.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/3Week_Mission/mutbooks/src/main/java/com/example/mutbooks/app/base/initData/InitDataBefore.java b/3Week_Mission/mutbooks/src/main/java/com/example/mutbooks/app/base/initData/InitDataBefore.java index 0e6dca9..6249d13 100644 --- a/3Week_Mission/mutbooks/src/main/java/com/example/mutbooks/app/base/initData/InitDataBefore.java +++ b/3Week_Mission/mutbooks/src/main/java/com/example/mutbooks/app/base/initData/InitDataBefore.java @@ -20,12 +20,14 @@ default void before( CartService cartService, OrderService orderService ) { - // 1번 회원(작가) + // 1번 회원(일반, 작가) Member member1 = memberService.join(new JoinForm("user1", "1234", "딸기", "user1@test.com")); - // 2번 회원(작가) + // 2번 회원(일반, 작가) Member member2 = memberService.join(new JoinForm("user2", "1234", "초코", "user2@test.com")); // 3번 회원(일반) Member member3 = memberService.join(new JoinForm("user3", "1234", null, "user3@test.com")); + // 4번 회원(일반, 관리자) + Member member4 = memberService.join(new JoinForm("admin", "1234", null, "admin@test.com")); // 1번 회원 캐시 50,000원 충전 memberService.addCash(member1, 50_000, "충전");