* @param param 预留参数,例: key1:'value1', key2:'value2' ...
* @return
*/
public static List<Link> getLinkList(String siteId, String categoryId, int number, String param){
Page<Link> page = new Page<Link>(1, number, -1);
Link link = new Link(new Category(categoryId, new Site(siteId)));
if (StringUtils.isNotBlank(param)){
@SuppressWarnings({ "unused", "rawtypes" })
Map map = JsonMapper.getInstance().fromJson("{"+param+"}", Map.class);
}
link.setDelFlag(Link.DEL_FLAG_NORMAL);
page = linkService.find(page, link, false);
return page.getList();
}