Skip to content

Commit

Permalink
#7 - Feat: 관리자 회원 1명 생성 initData 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ahah525 committed Oct 30, 2022
1 parent 52abaed commit 0a3c631
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ default void before(
CartService cartService,
OrderService orderService
) {
// 1번 회원(작가)
// 1번 회원(일반, 작가)
Member member1 = memberService.join(new JoinForm("user1", "1234", "딸기", "[email protected]"));
// 2번 회원(작가)
// 2번 회원(일반, 작가)
Member member2 = memberService.join(new JoinForm("user2", "1234", "초코", "[email protected]"));
// 3번 회원(일반)
Member member3 = memberService.join(new JoinForm("user3", "1234", null, "[email protected]"));
// 4번 회원(일반, 관리자)
Member member4 = memberService.join(new JoinForm("admin", "1234", null, "[email protected]"));

// 1번 회원 캐시 50,000원 충전
memberService.addCash(member1, 50_000, "충전");
Expand Down

0 comments on commit 0a3c631

Please sign in to comment.