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

import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.StringUtils;

/**
 * 农技课堂查询入参校验。
 */
public final class AgriculturalCourseValidation
{
    public static final String MSG_TYPE_REQUIRED = "类型不能为空";

    private AgriculturalCourseValidation()
    {
    }

    public static void validateType(String type)
    {
        if (StringUtils.isEmpty(type))
        {
            throw new ServiceException(MSG_TYPE_REQUIRED);
        }
    }
}
