feat():规则引擎功能完成

ruoyi_test
sunshine7058 2024-05-06 14:14:14 +08:00
parent b6f33d8a00
commit 9fad001ad6
282 changed files with 1580 additions and 257 deletions

View File

@ -8,7 +8,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
/**
*
*
* @author muyu
* @author hufangming
*/
@EnableMyFeignClients
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})

View File

@ -21,7 +21,7 @@ import javax.servlet.http.HttpServletRequest;
/**
* token
*
* @author muyu
* @author hufangming
*/
@RestController
public class TokenController {

View File

@ -3,7 +3,7 @@ package com.muyu.auth.form;
/**
*
*
* @author muyu
* @author hufangming
*/
public class LoginBody {
/**

View File

@ -3,7 +3,7 @@ package com.muyu.auth.form;
/**
*
*
* @author muyu
* @author hufangming
*/
public class RegisterBody extends LoginBody {

View File

@ -21,7 +21,7 @@ import org.springframework.stereotype.Component;
/**
*
*
* @author muyu
* @author hufangming
*/
@Component
public class SysLoginService {

View File

@ -14,7 +14,7 @@ import java.util.concurrent.TimeUnit;
/**
*
*
* @author muyu
* @author hufangming
*/
@Component
public class SysPasswordService {

View File

@ -12,7 +12,7 @@ import org.springframework.stereotype.Component;
/**
*
*
* @author muyu
* @author hufangming
*/
@Component
public class SysRecordLogService {

View File

@ -13,7 +13,7 @@ import java.math.BigDecimal;
/**
* Excel
*
* @author muyu
* @author hufangming
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)

View File

@ -8,7 +8,7 @@ import java.lang.annotation.Target;
/**
* Excel
*
* @author muyu
* @author hufangming
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.constant;
/**
*
*
* @author muyu
* @author hufangming
*/
public class CacheConstants {
/**

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.constant;
/**
*
*
* @author muyu
* @author hufangming
*/
public class Constants {
/**

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.constant;
/**
*
*
* @author muyu
* @author hufangming
*/
public class GenConstants {
/**

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.constant;
/**
*
*
* @author muyu
* @author hufangming
*/
public class HttpStatus {
/**

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.constant;
/**
*
*
* @author muyu
* @author hufangming
*/
public class ScheduleConstants {
public static final String TASK_CLASS_NAME = "TASK_CLASS_NAME";

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.constant;
/**
*
*
* @author muyu
* @author hufangming
*/
public class SecurityConstants {
/**

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.constant;
/**
*
*
* @author muyu
* @author hufangming
*/
public class ServiceNameConstants {
/**

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.constant;
/**
* TokenKey
*
* @author muyu
* @author hufangming
*/
public class TokenConstants {
/**

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.constant;
/**
*
*
* @author muyu
* @author hufangming
*/
public class UserConstants {
/**

View File

@ -12,7 +12,7 @@ import java.util.concurrent.ConcurrentHashMap;
* 线 idToken
* HeaderInterceptor
*
* @author muyu
* @author hufangming
*/
public class SecurityContextHolder {
private static final TransmittableThreadLocal<Map<String, Object>> THREAD_LOCAL = new TransmittableThreadLocal<>();

View File

@ -12,7 +12,7 @@ import java.io.Serializable;
/**
*
*
* @author muyu
* @author hufangming
*/
@Data
@Builder

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.enums;
/**
*
*
* @author muyu
* @author hufangming
*/
public enum UserStatus {
OK("0", "正常"), DISABLE("1", "停用"), DELETED("2", "删除");

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.exception;
/**
*
*
* @author muyu
* @author hufangming
*/
public class CaptchaException extends RuntimeException {
private static final long serialVersionUID = 1L;

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.exception;
/**
*
*
* @author muyu
* @author hufangming
*/
public class CheckedException extends RuntimeException {
private static final long serialVersionUID = 1L;

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.exception;
/**
*
*
* @author muyu
* @author hufangming
*/
public class DemoModeException extends RuntimeException {
private static final long serialVersionUID = 1L;

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.exception;
/**
*
*
* @author muyu
* @author hufangming
*/
public class GlobalException extends RuntimeException {
private static final long serialVersionUID = 1L;

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.exception;
/**
*
*
* @author muyu
* @author hufangming
*/
public class InnerAuthException extends RuntimeException {
private static final long serialVersionUID = 1L;

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.exception;
/**
*
*
* @author muyu
* @author hufangming
*/
public class PreAuthorizeException extends RuntimeException {
private static final long serialVersionUID = 1L;

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.exception;
/**
*
*
* @author muyu
* @author hufangming
*/
public final class ServiceException extends RuntimeException {
private static final long serialVersionUID = 1L;

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.exception;
/**
*
*
* @author muyu
* @author hufangming
*/
public class UtilException extends RuntimeException {
private static final long serialVersionUID = 8247610319171014183L;

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.exception.auth;
/**
*
*
* @author muyu
* @author hufangming
*/
public class NotLoginException extends RuntimeException {
private static final long serialVersionUID = 1L;

View File

@ -5,7 +5,7 @@ import org.apache.commons.lang3.StringUtils;
/**
*
*
* @author muyu
* @author hufangming
*/
public class NotPermissionException extends RuntimeException {
private static final long serialVersionUID = 1L;

View File

@ -5,7 +5,7 @@ import org.apache.commons.lang3.StringUtils;
/**
*
*
* @author muyu
* @author hufangming
*/
public class NotRoleException extends RuntimeException {
private static final long serialVersionUID = 1L;

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.exception.base;
/**
*
*
* @author muyu
* @author hufangming
*/
public class BaseException extends RuntimeException {
private static final long serialVersionUID = 1L;

View File

@ -5,7 +5,7 @@ import com.muyu.common.core.exception.base.BaseException;
/**
*
*
* @author muyu
* @author hufangming
*/
public class FileException extends BaseException {
private static final long serialVersionUID = 1L;

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.exception.file;
/**
*
*
* @author muyu
* @author hufangming
*/
public class FileNameLengthLimitExceededException extends FileException {
private static final long serialVersionUID = 1L;

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.exception.file;
/**
*
*
* @author muyu
* @author hufangming
*/
public class FileSizeLimitExceededException extends FileException {
private static final long serialVersionUID = 1L;

View File

@ -6,7 +6,7 @@ import java.io.PrintWriter;
/**
*
*
* @author muyu
* @author hufangming
*/
public class FileUploadException extends Exception {

View File

@ -5,7 +5,7 @@ import java.util.Arrays;
/**
*
*
* @author muyu
* @author hufangming
*/
public class InvalidExtensionException extends FileUploadException {
private static final long serialVersionUID = 1L;

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.exception.job;
/**
*
*
* @author muyu
* @author hufangming
*/
public class TaskException extends Exception {
private static final long serialVersionUID = 1L;

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.exception.user;
/**
*
*
* @author muyu
* @author hufangming
*/
public class CaptchaExpireException extends UserException {
private static final long serialVersionUID = 1L;

View File

@ -5,7 +5,7 @@ import com.muyu.common.core.exception.base.BaseException;
/**
*
*
* @author muyu
* @author hufangming
*/
public class UserException extends BaseException {
private static final long serialVersionUID = 1L;

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.exception.user;
/**
*
*
* @author muyu
* @author hufangming
*/
public class UserPasswordNotMatchException extends UserException {
private static final long serialVersionUID = 1L;

View File

@ -8,7 +8,7 @@ import java.nio.charset.StandardCharsets;
/**
*
*
* @author muyu
* @author hufangming
*/
public class CharsetKit {
/**

View File

@ -13,7 +13,7 @@ import java.util.Set;
/**
*
*
* @author muyu
* @author hufangming
*/
public class Convert {
/**

View File

@ -5,7 +5,7 @@ import com.muyu.common.core.utils.StringUtils;
/**
*
*
* @author muyu
* @author hufangming
*/
public class StrFormatter {
public static final String EMPTY_JSON = "{}";

View File

@ -11,7 +11,7 @@ import java.util.Date;
/**
*
*
* @author muyu
* @author hufangming
*/
public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
public static String YYYY = "yyyy";

View File

@ -8,7 +8,7 @@ import java.io.StringWriter;
/**
*
*
* @author muyu
* @author hufangming
*/
public class ExceptionUtil {
/**

View File

@ -12,7 +12,7 @@ import java.util.Map;
/**
* Jwt
*
* @author muyu
* @author hufangming
*/
public class JwtUtils {
public static String secret = TokenConstants.SECRET;

View File

@ -8,7 +8,7 @@ import com.muyu.common.core.web.page.TableSupport;
/**
*
*
* @author muyu
* @author hufangming
*/
public class PageUtils extends PageHelper {
/**

View File

@ -31,7 +31,7 @@ import java.util.Map;
/**
*
*
* @author muyu
* @author hufangming
*/
public class ServletUtils {
/**

View File

@ -10,7 +10,7 @@ import org.springframework.stereotype.Component;
/**
* spring 便springbean
*
* @author muyu
* @author hufangming
*/
@Component
public final class SpringUtils implements BeanFactoryPostProcessor {

View File

@ -11,7 +11,7 @@ import java.util.Map;
/**
*
*
* @author muyu
* @author hufangming
*/
public class StringUtils extends org.apache.commons.lang3.StringUtils {
/**

View File

@ -9,7 +9,7 @@ import java.util.regex.Pattern;
/**
* Bean
*
* @author muyu
* @author hufangming
*/
public class BeanUtils extends org.springframework.beans.BeanUtils {
/**

View File

@ -8,7 +8,7 @@ import java.util.Set;
/**
* bean
*
* @author muyu
* @author hufangming
*/
public class BeanValidators {
public static void validateWithException (Validator validator, Object object, Class<?>... groups)

View File

@ -10,7 +10,7 @@ import java.util.Objects;
/**
*
*
* @author muyu
* @author hufangming
*/
public class FileTypeUtils {
/**

View File

@ -12,7 +12,7 @@ import java.nio.charset.StandardCharsets;
/**
*
*
* @author muyu
* @author hufangming
*/
public class FileUtils {
/**

View File

@ -13,7 +13,7 @@ import java.util.Arrays;
/**
*
*
* @author muyu
* @author hufangming
*/
public class ImageUtils {
private static final Logger log = LoggerFactory.getLogger(ImageUtils.class);

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.utils.file;
/**
*
*
* @author muyu
* @author hufangming
*/
public class MimeTypeUtils {
public static final String IMAGE_PNG = "image/png";

View File

@ -5,7 +5,7 @@ import com.muyu.common.core.utils.StringUtils;
/**
*
*
* @author muyu
* @author hufangming
*/
public class EscapeUtil {
public static final String RE_HTML_MARK = "(<[^<]*?>)|(<[\\s]*?/[^<]*?>)|(<[^<]*?/[\\s]*?>)";

View File

@ -9,7 +9,7 @@ import java.util.regex.Pattern;
/**
* HTMLXSS
*
* @author muyu
* @author hufangming
*/
public final class HTMLFilter {
/**

View File

@ -10,7 +10,7 @@ import java.net.UnknownHostException;
/**
* IP
*
* @author muyu
* @author hufangming
*/
public class IpUtils {
public final static String REGX_0_255 = "(25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)";

View File

@ -6,7 +6,7 @@ import org.apache.poi.ss.usermodel.Workbook;
/**
* Excel
*
* @author muyu
* @author hufangming
*/
public interface ExcelHandlerAdapter {
/**

View File

@ -40,7 +40,7 @@ import java.util.stream.Collectors;
/**
* Excel
*
* @author muyu
* @author hufangming
*/
public class ExcelUtil<T> {
public static final String FORMULA_REGEX_STR = "=|-|\\+|@";

View File

@ -14,7 +14,7 @@ import java.util.Date;
/**
* . getter/setter, 访, , Class, AOP.
*
* @author muyu
* @author hufangming
*/
@SuppressWarnings("rawtypes")
public class ReflectUtils {

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.utils.sign;
/**
* Base64
*
* @author muyu
* @author hufangming
*/
public final class Base64 {
static private final int BASELENGTH = 128;

View File

@ -6,7 +6,7 @@ import com.muyu.common.core.utils.StringUtils;
/**
* sql
*
* @author muyu
* @author hufangming
*/
public class SqlUtil {
/**

View File

@ -3,7 +3,7 @@ package com.muyu.common.core.utils.uuid;
/**
* ID
*
* @author muyu
* @author hufangming
*/
public class IdUtils {
/**

View File

@ -6,7 +6,7 @@ import com.muyu.common.core.utils.StringUtils;
import java.util.concurrent.atomic.AtomicInteger;
/**
* @author muyu
* @author hufangming
*/
public class Seq {
// 通用序列类型

View File

@ -11,7 +11,7 @@ import java.util.concurrent.ThreadLocalRandom;
/**
* universally unique identifierUUID
*
* @author muyu
* @author hufangming
*/
public final class UUID implements java.io.Serializable, Comparable<UUID> {
private static final long serialVersionUID = -1185015143654744140L;

View File

@ -17,7 +17,7 @@ import java.util.List;
/**
* web
*
* @author muyu
* @author hufangming
*/
public class BaseController {
protected final Logger logger = LoggerFactory.getLogger(this.getClass());

View File

@ -17,7 +17,7 @@ import java.util.Map;
/**
* Entity
*
* @author muyu
* @author hufangming
*/
@Data
@SuperBuilder

View File

@ -12,7 +12,7 @@ import java.util.List;
/**
* Tree
*
* @author muyu
* @author hufangming
*/
@Data
@SuperBuilder

View File

@ -5,7 +5,7 @@ import com.muyu.common.core.utils.StringUtils;
/**
*
*
* @author muyu
* @author hufangming
*/
public class PageDomain {
/**

View File

@ -12,7 +12,7 @@ import java.util.List;
/**
*
*
* @author muyu
* @author hufangming
*/
@Data

View File

@ -6,7 +6,7 @@ import com.muyu.common.core.utils.ServletUtils;
/**
*
*
* @author muyu
* @author hufangming
*/
public class TableSupport {
/**

View File

@ -10,7 +10,7 @@ import java.lang.annotation.Target;
/**
* xss
*
* @author muyu
* @author hufangming
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.PARAMETER})

View File

@ -10,7 +10,7 @@ import java.util.regex.Pattern;
/**
* xss
*
* @author muyu
* @author hufangming
*/
public class XssValidator implements ConstraintValidator<Xss, String> {
private static final String HTML_PATTERN = "<(\\S*?)[^>]*>.*?|<.*? />";

View File

@ -5,7 +5,7 @@ import java.lang.annotation.*;
/**
*
*
* @author muyu
* @author hufangming
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)

View File

@ -20,7 +20,7 @@ import java.util.List;
/**
*
*
* @author muyu
* @author hufangming
*/
@Aspect
@Component

View File

@ -7,7 +7,7 @@ import java.lang.annotation.*;
/**
*
*
* @author muyu
* @author hufangming
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)

View File

@ -7,7 +7,7 @@ import java.lang.annotation.*;
/**
*
*
* @author muyu
* @author hufangming
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)

View File

@ -8,7 +8,7 @@ import java.lang.annotation.*;
/**
*
*
* @author muyu
* @author hufangming
*/
@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)

View File

@ -33,7 +33,7 @@ import java.util.Map;
/**
*
*
* @author muyu
* @author hufangming
*/
@Aspect
@Component

View File

@ -3,7 +3,7 @@ package com.muyu.common.log.enums;
/**
*
*
* @author muyu
* @author hufangming
*/
public enum BusinessStatus {
/**

View File

@ -3,7 +3,7 @@ package com.muyu.common.log.enums;
/**
*
*
* @author muyu
* @author hufangming
*/
public enum BusinessType {
/**

View File

@ -3,7 +3,7 @@ package com.muyu.common.log.enums;
/**
*
*
* @author muyu
* @author hufangming
*/
public enum OperatorType {
/**

View File

@ -5,7 +5,7 @@ import com.alibaba.fastjson2.filter.SimplePropertyPreFilter;
/**
* JSON
*
* @author muyu
* @author hufangming
*/
public class PropertyPreExcludeFilter extends SimplePropertyPreFilter {
public PropertyPreExcludeFilter () {

View File

@ -10,7 +10,7 @@ import org.springframework.stereotype.Service;
/**
*
*
* @author muyu
* @author hufangming
*/
@Service
public class AsyncLogService {

View File

@ -13,7 +13,7 @@ import java.nio.charset.Charset;
/**
* Redis使FastJson
*
* @author muyu
* @author hufangming
*/
public class FastJson2JsonRedisSerializer<T> implements RedisSerializer<T> {
public static final Charset DEFAULT_CHARSET = Charset.forName("UTF-8");

View File

@ -13,7 +13,7 @@ import org.springframework.data.redis.serializer.StringRedisSerializer;
/**
* redis
*
* @author muyu
* @author hufangming
*/
@Configuration
@EnableCaching

View File

@ -13,7 +13,7 @@ import java.util.concurrent.TimeUnit;
/**
* spring redis
*
* @author muyu
* @author hufangming
**/
@SuppressWarnings(value = {"unchecked", "rawtypes"})
@Component

View File

@ -8,7 +8,7 @@ import java.lang.annotation.*;
* feign
* basePackages
*
* @author muyu
* @author hufangming
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)

View File

@ -5,7 +5,7 @@ import java.lang.annotation.*;
/**
*
*
* @author muyu
* @author hufangming
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)

View File

@ -3,7 +3,7 @@ package com.muyu.common.security.annotation;
/**
*
*
* @author muyu
* @author hufangming
*/
public enum Logical {
/**

View File

@ -8,7 +8,7 @@ import java.lang.annotation.Target;
/**
*
*
* @author muyu
* @author hufangming
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})

View File

@ -8,7 +8,7 @@ import java.lang.annotation.Target;
/**
*
*
* @author muyu
* @author hufangming
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})

View File

@ -8,7 +8,7 @@ import java.lang.annotation.Target;
/**
*
*
* @author muyu
* @author hufangming
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})

View File

@ -14,7 +14,7 @@ import org.springframework.stereotype.Component;
/**
*
*
* @author muyu
* @author hufangming
*/
@Aspect
@Component

View File

@ -16,7 +16,7 @@ import java.lang.reflect.Method;
/**
* Spring Aop
*
* @author kong
* @author hufangming
*/
@Aspect
@Component

View File

@ -22,7 +22,7 @@ import java.util.Set;
/**
* Token
*
* @author muyu
* @author hufangming
*/
public class AuthLogic {
/**

Some files were not shown because too many files have changed in this diff Show More