Search in sources :

Example 1 with LinkConditionVO

use of com.zyd.blog.business.vo.LinkConditionVO in project OneBlog by zhangyd-c.

the class SysLinkServiceImpl method listOfIndex.

/**
 * 查询可在首页显示的友情链接列表
 *
 * @return
 */
@Override
@RedisCache
public List<Link> listOfIndex() {
    LinkConditionVO vo = new LinkConditionVO(1, 1);
    vo.setPageSize(100);
    PageInfo<Link> pageInfo = this.findPageBreakByCondition(vo);
    return pageInfo == null ? null : pageInfo.getList();
}
Also used : LinkConditionVO(com.zyd.blog.business.vo.LinkConditionVO) Link(com.zyd.blog.business.entity.Link) SysLink(com.zyd.blog.persistence.beans.SysLink) RedisCache(com.zyd.blog.business.annotation.RedisCache)

Example 2 with LinkConditionVO

use of com.zyd.blog.business.vo.LinkConditionVO in project OneBlog by zhangyd-c.

the class SysLinkServiceImpl method listOfDisable.

/**
 * 查询已禁用的友情链接列表
 *
 * @return
 */
@Override
@RedisCache
public List<Link> listOfDisable() {
    LinkConditionVO vo = new LinkConditionVO(0, null);
    vo.setPageSize(100);
    PageInfo<Link> pageInfo = this.findPageBreakByCondition(vo);
    return pageInfo == null ? null : pageInfo.getList();
}
Also used : LinkConditionVO(com.zyd.blog.business.vo.LinkConditionVO) Link(com.zyd.blog.business.entity.Link) SysLink(com.zyd.blog.persistence.beans.SysLink) RedisCache(com.zyd.blog.business.annotation.RedisCache)

Example 3 with LinkConditionVO

use of com.zyd.blog.business.vo.LinkConditionVO in project OneBlog by zhangyd-c.

the class SysLinkServiceImpl method listOfInside.

/**
 * 查询可在内页显示的友情链接列表
 *
 * @return
 */
@Override
@RedisCache
public List<Link> listOfInside() {
    LinkConditionVO vo = new LinkConditionVO(1, 0);
    vo.setPageSize(100);
    PageInfo<Link> pageInfo = this.findPageBreakByCondition(vo);
    return pageInfo == null ? null : pageInfo.getList();
}
Also used : LinkConditionVO(com.zyd.blog.business.vo.LinkConditionVO) Link(com.zyd.blog.business.entity.Link) SysLink(com.zyd.blog.persistence.beans.SysLink) RedisCache(com.zyd.blog.business.annotation.RedisCache)

Aggregations

RedisCache (com.zyd.blog.business.annotation.RedisCache)3 Link (com.zyd.blog.business.entity.Link)3 LinkConditionVO (com.zyd.blog.business.vo.LinkConditionVO)3 SysLink (com.zyd.blog.persistence.beans.SysLink)3