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

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

/**
 * 畜牧资源列表分页（PageHelper）。
 */
public final class LivestockResourcePageSupport
{
    private LivestockResourcePageSupport()
    {
    }

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