public List<BoardVo> listBoard(Long classNo) { List<BoardVo> list = boardDao.getList(classNo); // List<BoardVo> list = boardDao.getList(Long classNo); // Map<String, Object> map = new HashMap<String, Object>(); // map.put( "list", list ); return list; }
public BoardVo getClassNo(Long postNo) { BoardVo boardVo = boardDao.getClassNo(postNo); return boardVo; }
public void deleteBoard(Long postNo) { boardDao.delete(postNo); }
public BoardVo getPostByPostNo(Long postNo) { BoardVo retVo = null; retVo = boardDao.getPostByPostNo(postNo); return retVo; }
public void updateViewCount(Long postNo) { boardDao.updateViewCount(postNo); }
public void updateBoard(BoardVo vo) { boardDao.updateBoard(vo); }
public void writeBoard(BoardVo vo) { boardDao.insert(vo); }
public ClassVo viewBoardName(Long classNo) { ClassVo vo = boardDao.getStirng(classNo); return vo; }
public BoardVo viewBoard(Long postNo) { BoardVo vo = boardDao.get(postNo); return vo; }