feat(validation): 新增校验模块并引入 SpEL Validator 用于复杂校验场景

This commit is contained in:
2025-06-18 20:19:36 +08:00
parent 5a53d953da
commit 5ae5b2602a
31 changed files with 91 additions and 34 deletions

View File

@@ -28,7 +28,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Sort;
import top.continew.starter.core.exception.BadRequestException;
import top.continew.starter.core.util.ReflectUtils;
import top.continew.starter.core.validation.ValidationUtils;
import top.continew.starter.core.util.ValidationUtils;
import top.continew.starter.data.core.annotation.Query;
import top.continew.starter.data.core.annotation.QueryIgnore;
import top.continew.starter.data.core.enums.QueryType;

View File

@@ -20,8 +20,8 @@ import cn.hutool.core.util.ClassUtil;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.repository.CrudRepository;
import top.continew.starter.core.util.ReflectUtils;
import top.continew.starter.core.validation.CheckUtils;
import top.continew.starter.data.mp.service.IService;
import top.continew.starter.core.util.CheckUtils;
import java.io.Serializable;
import java.lang.reflect.Field;

View File

@@ -28,7 +28,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Sort;
import top.continew.starter.core.exception.BadRequestException;
import top.continew.starter.core.util.ReflectUtils;
import top.continew.starter.core.validation.ValidationUtils;
import top.continew.starter.core.util.ValidationUtils;
import top.continew.starter.data.core.annotation.Query;
import top.continew.starter.data.core.annotation.QueryIgnore;
import top.continew.starter.data.core.enums.QueryType;