public void insertGood(HttpSession session, Long content_no, Long member_no) { GoodContentVo goodContentVo = new GoodContentVo(); MemberVo memberVo = (MemberVo) session.getAttribute("authUser"); goodContentVo.setMemberName(memberVo.getMemberName()); goodContentVo.setContent_no(content_no); goodContentVo.setMember_no(member_no); goodContentDao.insert(goodContentVo); }
public void deleteGood(HttpSession session, Long contnet_no, Long member_no) { GoodContentVo vo = goodContentDao.selectVoCnoMno(contnet_no, member_no); long goodContnet_no = vo.getGoodContent_no(); goodContentDao.delete(goodContnet_no); }