package com.ruoyi.web.modules.news.support;

import com.github.pagehelper.PageHelper;
import com.ruoyi.web.modules.news.domain.FarmingNewsQuery;

/**
 * 养殖资讯列表分页（PageHelper）。
 */
public final class FarmingNewsPageSupport
{
    private FarmingNewsPageSupport()
    {
    }

    public static void startPage(FarmingNewsQuery query)
    {
        FarmingNewsQuery effective = FarmingNewsQuerySupport.normalize(query);
        PageHelper.startPage(effective.getPageNum(), effective.getPageSize())
                .setReasonable(true);
    }
}
