mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-08 16:57:09 +08:00
chore(core): 调整 CheckUtils 等校验类到 util.validation 包下
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package top.continew.starter.core.util;
|
package top.continew.starter.core.util.validation;
|
||||||
|
|
||||||
import cn.hutool.core.text.CharSequenceUtil;
|
import cn.hutool.core.text.CharSequenceUtil;
|
||||||
import top.continew.starter.core.constant.StringConstants;
|
import top.continew.starter.core.constant.StringConstants;
|
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package top.continew.starter.core.util;
|
package top.continew.starter.core.util.validation;
|
||||||
|
|
||||||
import cn.hutool.core.text.CharSequenceUtil;
|
import cn.hutool.core.text.CharSequenceUtil;
|
||||||
import top.continew.starter.core.exception.BadRequestException;
|
import top.continew.starter.core.exception.BadRequestException;
|
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package top.continew.starter.core.util;
|
package top.continew.starter.core.util.validation;
|
||||||
|
|
||||||
import cn.hutool.core.text.CharSequenceUtil;
|
import cn.hutool.core.text.CharSequenceUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
@@ -28,7 +28,7 @@ import org.slf4j.LoggerFactory;
|
|||||||
import org.springframework.data.domain.Sort;
|
import org.springframework.data.domain.Sort;
|
||||||
import top.continew.starter.core.exception.BadRequestException;
|
import top.continew.starter.core.exception.BadRequestException;
|
||||||
import top.continew.starter.core.util.ReflectUtils;
|
import top.continew.starter.core.util.ReflectUtils;
|
||||||
import top.continew.starter.core.util.ValidationUtils;
|
import top.continew.starter.core.util.validation.ValidationUtils;
|
||||||
import top.continew.starter.data.core.annotation.Query;
|
import top.continew.starter.data.core.annotation.Query;
|
||||||
import top.continew.starter.data.core.annotation.QueryIgnore;
|
import top.continew.starter.data.core.annotation.QueryIgnore;
|
||||||
import top.continew.starter.data.core.enums.QueryType;
|
import top.continew.starter.data.core.enums.QueryType;
|
||||||
|
@@ -21,7 +21,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||||||
import com.baomidou.mybatisplus.extension.repository.CrudRepository;
|
import com.baomidou.mybatisplus.extension.repository.CrudRepository;
|
||||||
import top.continew.starter.core.util.ReflectUtils;
|
import top.continew.starter.core.util.ReflectUtils;
|
||||||
import top.continew.starter.data.mp.service.IService;
|
import top.continew.starter.data.mp.service.IService;
|
||||||
import top.continew.starter.core.util.CheckUtils;
|
import top.continew.starter.core.util.validation.CheckUtils;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
|
@@ -28,7 +28,7 @@ import org.slf4j.LoggerFactory;
|
|||||||
import org.springframework.data.domain.Sort;
|
import org.springframework.data.domain.Sort;
|
||||||
import top.continew.starter.core.exception.BadRequestException;
|
import top.continew.starter.core.exception.BadRequestException;
|
||||||
import top.continew.starter.core.util.ReflectUtils;
|
import top.continew.starter.core.util.ReflectUtils;
|
||||||
import top.continew.starter.core.util.ValidationUtils;
|
import top.continew.starter.core.util.validation.ValidationUtils;
|
||||||
import top.continew.starter.data.core.annotation.Query;
|
import top.continew.starter.data.core.annotation.Query;
|
||||||
import top.continew.starter.data.core.annotation.QueryIgnore;
|
import top.continew.starter.data.core.annotation.QueryIgnore;
|
||||||
import top.continew.starter.data.core.enums.QueryType;
|
import top.continew.starter.data.core.enums.QueryType;
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
package top.continew.starter.extension.crud.autoconfigure;
|
package top.continew.starter.extension.crud.autoconfigure;
|
||||||
|
|
||||||
import cn.hutool.core.lang.tree.TreeNodeConfig;
|
import cn.hutool.core.lang.tree.TreeNodeConfig;
|
||||||
import top.continew.starter.core.util.CheckUtils;
|
import top.continew.starter.core.util.validation.CheckUtils;
|
||||||
import top.continew.starter.extension.crud.annotation.TreeField;
|
import top.continew.starter.extension.crud.annotation.TreeField;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -21,7 +21,7 @@ import cn.hutool.core.util.ArrayUtil;
|
|||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import org.springframework.data.domain.Sort;
|
import org.springframework.data.domain.Sort;
|
||||||
import top.continew.starter.core.constant.StringConstants;
|
import top.continew.starter.core.constant.StringConstants;
|
||||||
import top.continew.starter.core.util.ValidationUtils;
|
import top.continew.starter.core.util.validation.ValidationUtils;
|
||||||
import top.continew.starter.data.core.util.SqlInjectionUtils;
|
import top.continew.starter.data.core.util.SqlInjectionUtils;
|
||||||
|
|
||||||
import java.io.Serial;
|
import java.io.Serial;
|
||||||
|
@@ -33,7 +33,7 @@ import org.springframework.data.domain.Sort;
|
|||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
import top.continew.starter.core.constant.StringConstants;
|
import top.continew.starter.core.constant.StringConstants;
|
||||||
import top.continew.starter.core.util.ReflectUtils;
|
import top.continew.starter.core.util.ReflectUtils;
|
||||||
import top.continew.starter.core.util.ValidationUtils;
|
import top.continew.starter.core.util.validation.ValidationUtils;
|
||||||
import top.continew.starter.data.mf.base.BaseMapper;
|
import top.continew.starter.data.mf.base.BaseMapper;
|
||||||
import top.continew.starter.data.mf.service.impl.ServiceImpl;
|
import top.continew.starter.data.mf.service.impl.ServiceImpl;
|
||||||
import top.continew.starter.data.mf.util.QueryWrapperHelper;
|
import top.continew.starter.data.mf.util.QueryWrapperHelper;
|
||||||
|
@@ -50,8 +50,8 @@ import top.continew.starter.extension.crud.model.query.SortQuery;
|
|||||||
import top.continew.starter.extension.crud.model.resp.LabelValueResp;
|
import top.continew.starter.extension.crud.model.resp.LabelValueResp;
|
||||||
import top.continew.starter.extension.crud.model.resp.PageResp;
|
import top.continew.starter.extension.crud.model.resp.PageResp;
|
||||||
import top.continew.starter.excel.util.ExcelUtils;
|
import top.continew.starter.excel.util.ExcelUtils;
|
||||||
import top.continew.starter.core.util.CheckUtils;
|
import top.continew.starter.core.util.validation.CheckUtils;
|
||||||
import top.continew.starter.core.util.ValidationUtils;
|
import top.continew.starter.core.util.validation.ValidationUtils;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
package top.continew.starter.messaging.mail.core;
|
package top.continew.starter.messaging.mail.core;
|
||||||
|
|
||||||
import cn.hutool.core.map.MapUtil;
|
import cn.hutool.core.map.MapUtil;
|
||||||
import top.continew.starter.core.util.ValidationUtils;
|
import top.continew.starter.core.util.validation.ValidationUtils;
|
||||||
|
|
||||||
import java.nio.charset.Charset;
|
import java.nio.charset.Charset;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
package top.continew.starter.messaging.mail.core;
|
package top.continew.starter.messaging.mail.core;
|
||||||
|
|
||||||
import org.springframework.mail.javamail.JavaMailSenderImpl;
|
import org.springframework.mail.javamail.JavaMailSenderImpl;
|
||||||
import top.continew.starter.core.util.ValidationUtils;
|
import top.continew.starter.core.util.validation.ValidationUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 邮件配置
|
* 邮件配置
|
||||||
|
@@ -33,7 +33,7 @@ import org.springframework.security.crypto.password.PasswordEncoder;
|
|||||||
import org.springframework.security.crypto.password.Pbkdf2PasswordEncoder;
|
import org.springframework.security.crypto.password.Pbkdf2PasswordEncoder;
|
||||||
import org.springframework.security.crypto.scrypt.SCryptPasswordEncoder;
|
import org.springframework.security.crypto.scrypt.SCryptPasswordEncoder;
|
||||||
import top.continew.starter.core.constant.PropertiesConstants;
|
import top.continew.starter.core.constant.PropertiesConstants;
|
||||||
import top.continew.starter.core.util.CheckUtils;
|
import top.continew.starter.core.util.validation.CheckUtils;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
package top.continew.starter.storage.manger;
|
package top.continew.starter.storage.manger;
|
||||||
|
|
||||||
import top.continew.starter.cache.redisson.util.RedisUtils;
|
import top.continew.starter.cache.redisson.util.RedisUtils;
|
||||||
import top.continew.starter.core.util.ValidationUtils;
|
import top.continew.starter.core.util.validation.ValidationUtils;
|
||||||
import top.continew.starter.storage.constant.StorageConstant;
|
import top.continew.starter.storage.constant.StorageConstant;
|
||||||
import top.continew.starter.storage.strategy.StorageStrategy;
|
import top.continew.starter.storage.strategy.StorageStrategy;
|
||||||
|
|
||||||
|
@@ -24,8 +24,8 @@ import cn.hutool.core.util.StrUtil;
|
|||||||
import cn.hutool.crypto.digest.DigestUtil;
|
import cn.hutool.crypto.digest.DigestUtil;
|
||||||
import top.continew.starter.core.constant.StringConstants;
|
import top.continew.starter.core.constant.StringConstants;
|
||||||
import top.continew.starter.core.exception.BusinessException;
|
import top.continew.starter.core.exception.BusinessException;
|
||||||
import top.continew.starter.core.util.CheckUtils;
|
import top.continew.starter.core.util.validation.CheckUtils;
|
||||||
import top.continew.starter.core.util.ValidationUtils;
|
import top.continew.starter.core.util.validation.ValidationUtils;
|
||||||
import top.continew.starter.storage.client.LocalClient;
|
import top.continew.starter.storage.client.LocalClient;
|
||||||
import top.continew.starter.storage.constant.StorageConstant;
|
import top.continew.starter.storage.constant.StorageConstant;
|
||||||
import top.continew.starter.storage.dao.StorageDao;
|
import top.continew.starter.storage.dao.StorageDao;
|
||||||
|
@@ -36,8 +36,8 @@ import software.amazon.awssdk.transfer.s3.model.Upload;
|
|||||||
import software.amazon.awssdk.transfer.s3.progress.LoggingTransferListener;
|
import software.amazon.awssdk.transfer.s3.progress.LoggingTransferListener;
|
||||||
import top.continew.starter.core.constant.StringConstants;
|
import top.continew.starter.core.constant.StringConstants;
|
||||||
import top.continew.starter.core.exception.BusinessException;
|
import top.continew.starter.core.exception.BusinessException;
|
||||||
import top.continew.starter.core.util.CheckUtils;
|
import top.continew.starter.core.util.validation.CheckUtils;
|
||||||
import top.continew.starter.core.util.ValidationUtils;
|
import top.continew.starter.core.util.validation.ValidationUtils;
|
||||||
import top.continew.starter.storage.client.OssClient;
|
import top.continew.starter.storage.client.OssClient;
|
||||||
import top.continew.starter.storage.constant.StorageConstant;
|
import top.continew.starter.storage.constant.StorageConstant;
|
||||||
import top.continew.starter.storage.dao.StorageDao;
|
import top.continew.starter.storage.dao.StorageDao;
|
||||||
|
Reference in New Issue
Block a user