@CacheEvict(value = "folder", allEntries = true) public AdminFolder addAdminFolder(long adminId, long folderId) { AdminFolder adminFolder = new AdminFolder(); adminFolder.setAdminId(adminId); adminFolder.setFolderId(folderId); adminFolder.setCreateTime(new Date()); adminFolderDao.addAdminFolder(adminFolder); return adminFolder; }
public AdminFolderVo getAdminFolderById(long adminId, long folderId) { return adminFolderDao.getAdminFolderById(adminId, folderId); }
public List<AdminFolderVo> getAdminFolderListById(long adminId) { List<AdminFolderVo> list = adminFolderDao.getAdminFolderListById(adminId); return list; }
@CacheEvict(value = "folder", allEntries = true) public int deleteAdminFolder(long adminId, long folderId) { return adminFolderDao.deleteAdminFolder(adminId, folderId); }