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

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

/**
 * 农技课堂列表分页（PageHelper）。
 */
public final class AgriculturalCoursePageSupport
{
    private AgriculturalCoursePageSupport()
    {
    }

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