@Override public void commissionManagerClub(int clubNo, SocialPerson originPerson, SocialPerson nwPerson) { // memberDao.deleteClubManager(clubNo, originPerson.getEmail()); memberDao.addClubMember(new ClubMember(clubNo, originPerson)); memberDao.deleteClubMember(clubNo, nwPerson.getEmail()); memberDao.addClubManager(new ClubManager(clubNo, nwPerson)); }
@Override public void joinAsMember(int clubNo, String email) { // Club club = clubDao.readClub(clubNo); if (club == null) { throw NamooClubExceptionFactory.createRuntime("클럽이 존재하지 않습니다."); } memberDao.addClubMember(new ClubMember(clubNo, new SocialPerson(email, "qwer"))); }