style: 替换项目内所有ruoyi转为wfc

This commit is contained in:
TsMask committed 2024-11-26 17:34:02 +08:00
1 parent 77a28b06a3
commit fab448f836
300 files changed
+1211 -1428

No files matched your search

@@ -12,7 +12,7 @@ import org.wfc.common.core.utils.poi.ExcelHandlerAdapter;
/**
* 自定义导出Excel数据注解
*
* @author ruoyi
* @author wfc
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@@ -8,7 +8,7 @@ import java.lang.annotation.Target;
/**
* Excel注解集
*
* @author ruoyi
* @author wfc
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@@ -3,7 +3,7 @@ package org.wfc.common.core.constant;
/**
* 缓存常量信息
*
* @author ruoyi
* @author wfc
*/
public class CacheConstants
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.constant;
/**
* 通用常量信息
*
* @author ruoyi
* @author wfc
*/
public class Constants
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.constant;
/**
* 代码生成通用常量
*
* @author ruoyi
* @author wfc
*/
public class GenConstants
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.constant;
/**
* 返回状态码
*
* @author ruoyi
* @author wfc
*/
public class HttpStatus
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.constant;
/**
* 任务调度通用常量
*
* @author ruoyi
* @author wfc
*/
public class ScheduleConstants
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.constant;
/**
* 权限相关通用常量
*
* @author ruoyi
* @author wfc
*/
public class SecurityConstants
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.constant;
/**
* 服务名称
*
* @author ruoyi
* @author wfc
*/
public class ServiceNameConstants
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.constant;
/**
* Token的Key常量
*
* @author ruoyi
* @author wfc
*/
public class TokenConstants
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.constant;
/**
* 用户常量信息
*
* @author ruoyi
* @author wfc
*/
public class UserConstants
{
@@ -11,7 +11,7 @@ import org.wfc.common.core.utils.StringUtils;
* 获取当前线程变量中的 用户id、用户名称、Token等信息
* 注意: 必须在网关通过请求头的方法传入,同时在HeaderInterceptor拦截器设置值。 否则这里无法获取
*
* @author ruoyi
* @author wfc
*/
public class SecurityContextHolder
{
@@ -6,7 +6,7 @@ import org.wfc.common.core.constant.Constants;
/**
* 响应信息主体
*
* @author ruoyi
* @author wfc
*/
public class R<T> implements Serializable
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.enums;
/**
* 用户状态
*
* @author ruoyi
* @author wfc
*/
public enum UserStatus
{
@@ -5,7 +5,7 @@ import org.wfc.common.core.exception.user.UserException;
/**
* 验证码错误异常类
*
* @author ruoyi
* @author wfc
*/
public class CaptchaException extends UserException
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.exception;
/**
* 检查异常
*
* @author ruoyi
* @author wfc
*/
public class CheckedException extends RuntimeException
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.exception;
/**
* 演示模式异常
*
* @author ruoyi
* @author wfc
*/
public class DemoModeException extends RuntimeException
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.exception;
/**
* 全局异常
*
* @author ruoyi
* @author wfc
*/
public class GlobalException extends RuntimeException
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.exception;
/**
* 内部认证异常
*
* @author ruoyi
* @author wfc
*/
public class InnerAuthException extends RuntimeException
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.exception;
/**
* 权限异常
*
* @author ruoyi
* @author wfc
*/
public class PreAuthorizeException extends RuntimeException
{
@@ -6,7 +6,7 @@ import org.wfc.common.core.utils.StringUtils;
/**
* 业务异常
*
* @author ruoyi
* @author wfc
*/
public final class ServiceException extends RuntimeException
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.exception;
/**
* 工具类异常
*
* @author ruoyi
* @author wfc
*/
public class UtilException extends RuntimeException
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.exception.auth;
/**
* 未能通过的登录认证异常
*
* @author ruoyi
* @author wfc
*/
public class NotLoginException extends RuntimeException
{
@@ -5,7 +5,7 @@ import org.apache.commons.lang3.StringUtils;
/**
* 未能通过的权限认证异常
*
* @author ruoyi
* @author wfc
*/
public class NotPermissionException extends RuntimeException
{
@@ -5,7 +5,7 @@ import org.apache.commons.lang3.StringUtils;
/**
* 未能通过的角色认证异常
*
* @author ruoyi
* @author wfc
*/
public class NotRoleException extends RuntimeException
{
@@ -6,7 +6,7 @@ import org.wfc.common.core.utils.StringUtils;
/**
* 基础异常
*
* @author ruoyi
* @author wfc
*/
public class BaseException extends RuntimeException
{
@@ -5,7 +5,7 @@ import org.wfc.common.core.exception.base.BaseException;
/**
* 文件信息异常类
*
* @author ruoyi
* @author wfc
*/
public class FileException extends BaseException
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.exception.file;
/**
* 文件名称超长限制异常类
*
* @author ruoyi
* @author wfc
*/
public class FileNameLengthLimitExceededException extends FileException
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.exception.file;
/**
* 文件名大小限制异常类
*
* @author ruoyi
* @author wfc
*/
public class FileSizeLimitExceededException extends FileException
{
@@ -6,7 +6,7 @@ import java.io.PrintWriter;
/**
* 文件上传异常类
*
* @author ruoyi
* @author wfc
*/
public class FileUploadException extends Exception
{
@@ -5,7 +5,7 @@ import java.util.Arrays;
/**
* 文件上传 误异常类
*
* @author ruoyi
* @author wfc
*/
public class InvalidExtensionException extends FileUploadException
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.exception.job;
/**
* 计划策略异常
*
* @author ruoyi
* @author wfc
*/
public class TaskException extends Exception
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.exception.user;
/**
* 验证码失效异常类
*
* @author ruoyi
* @author wfc
*/
public class CaptchaExpireException extends UserException
{
@@ -5,7 +5,7 @@ import org.wfc.common.core.exception.base.BaseException;
/**
* 用户信息异常类
*
* @author ruoyi
* @author wfc
*/
public class UserException extends BaseException
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.exception.user;
/**
* 用户密码不正确或不符合规范异常类
*
* @author ruoyi
* @author wfc
*/
public class UserPasswordNotMatchException extends UserException
{
@@ -7,7 +7,7 @@ import org.wfc.common.core.utils.StringUtils;
/**
* 字符集工具类
*
* @author ruoyi
* @author wfc
*/
public class CharsetKit
{
@@ -12,7 +12,7 @@ import org.wfc.common.core.utils.StringUtils;
/**
* 类型转换器
*
* @author ruoyi
* @author wfc
*/
public class Convert
{
@@ -5,7 +5,7 @@ import org.wfc.common.core.utils.StringUtils;
/**
* 字符串格式化
*
* @author ruoyi
* @author wfc
*/
public class StrFormatter
{
@@ -14,7 +14,7 @@ import org.apache.commons.lang3.time.DateFormatUtils;
/**
* 时间工具类
*
* @author ruoyi
* @author wfc
*/
public class DateUtils extends org.apache.commons.lang3.time.DateUtils
{
@@ -7,7 +7,7 @@ import org.apache.commons.lang3.exception.ExceptionUtils;
/**
* 错误信息处理类。
*
* @author ruoyi
* @author wfc
*/
public class ExceptionUtil
{
@@ -11,7 +11,7 @@ import io.jsonwebtoken.SignatureAlgorithm;
/**
* Jwt工具类
*
* @author ruoyi
* @author wfc
*/
public class JwtUtils
{
@@ -8,7 +8,7 @@ import org.wfc.common.core.web.page.TableSupport;
/**
* 分页工具类
*
* @author ruoyi
* @author wfc
*/
public class PageUtils extends PageHelper
{
@@ -30,7 +30,7 @@ import reactor.core.publisher.Mono;
/**
* 客户端工具类
*
* @author ruoyi
* @author wfc
*/
public class ServletUtils
{
@@ -10,7 +10,7 @@ import org.springframework.stereotype.Component;
/**
* spring工具类 方便在非spring管理环境中获取bean
*
* @author ruoyi
* @author wfc
*/
@Component
public final class SpringUtils implements BeanFactoryPostProcessor
@@ -10,7 +10,7 @@ import org.wfc.common.core.text.StrFormatter;
/**
* 字符串工具类
*
* @author ruoyi
* @author wfc
*/
public class StringUtils extends org.apache.commons.lang3.StringUtils
{
@@ -9,7 +9,7 @@ import java.util.regex.Pattern;
/**
* Bean 工具类
*
* @author ruoyi
* @author wfc
*/
public class BeanUtils extends org.springframework.beans.BeanUtils
{
@@ -8,7 +8,7 @@ import javax.validation.Validator;
/**
* bean对象属性验证
*
* @author ruoyi
* @author wfc
*/
public class BeanValidators
{
@@ -9,14 +9,14 @@ import org.springframework.web.multipart.MultipartFile;
/**
* 文件类型工具类
*
* @author ruoyi
* @author wfc
*/
public class FileTypeUtils
{
/**
* 获取文件类型
* <p>
* 例如: ruoyi.txt, 返回: txt
* 例如: wfc.txt, 返回: txt
*
* @param file 文件名
* @return 后缀(不含".")
@@ -33,7 +33,7 @@ public class FileTypeUtils
/**
* 获取文件类型
* <p>
* 例如: ruoyi.txt, 返回: txt
* 例如: wfc.txt, 返回: txt
*
* @param fileName 文件名
* @return 后缀(不含".")
@@ -16,7 +16,7 @@ import org.wfc.common.core.utils.StringUtils;
/**
* 文件处理工具类
*
* @author ruoyi
* @author wfc
*/
public class FileUtils
{
@@ -12,7 +12,7 @@ import org.slf4j.LoggerFactory;
/**
* 图片处理工具类
*
* @author ruoyi
* @author wfc
*/
public class ImageUtils
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.utils.file;
/**
* 媒体类型工具类
*
* @author ruoyi
* @author wfc
*/
public class MimeTypeUtils
{
@@ -5,7 +5,7 @@ import org.wfc.common.core.utils.StringUtils;
/**
* 转义和反转义工具类
*
* @author ruoyi
* @author wfc
*/
public class EscapeUtil
{
@@ -13,7 +13,7 @@ import java.util.regex.Pattern;
/**
* HTML过滤器,用于去除XSS漏洞隐患。
*
* @author ruoyi
* @author wfc
*/
public final class HTMLFilter
{
@@ -9,7 +9,7 @@ import org.wfc.common.core.utils.StringUtils;
/**
* 获取IP方法
*
* @author ruoyi
* @author wfc
*/
public class IpUtils
{
@@ -6,7 +6,7 @@ import org.apache.poi.ss.usermodel.Workbook;
/**
* Excel数据格式处理适配器
*
* @author ruoyi
* @author wfc
*/
public interface ExcelHandlerAdapter
{
@@ -67,7 +67,7 @@ import org.wfc.common.core.utils.reflect.ReflectUtils;
/**
* Excel相关处理
*
* @author ruoyi
* @author wfc
*/
public class ExcelUtil<T>
{
@@ -18,7 +18,7 @@ import org.wfc.common.core.utils.DateUtils;
/**
* 反射工具类. 提供调用getter/setter方法, 访问私有变量, 调用私有方法, 获取泛型类型Class, 被AOP过的真实类等工具函数.
*
* @author ruoyi
* @author wfc
*/
@SuppressWarnings("rawtypes")
public class ReflectUtils
@@ -3,7 +3,7 @@ package org.wfc.common.core.utils.sign;
/**
* Base64工具类
*
* @author ruoyi
* @author wfc
*/
public final class Base64
{
@@ -6,7 +6,7 @@ import org.wfc.common.core.utils.StringUtils;
/**
* sql操作工具类
*
* @author ruoyi
* @author wfc
*/
public class SqlUtil
{
@@ -3,7 +3,7 @@ package org.wfc.common.core.utils.uuid;
/**
* ID生成器工具类
*
* @author ruoyi
* @author wfc
*/
public class IdUtils
{
@@ -5,7 +5,7 @@ import org.wfc.common.core.utils.DateUtils;
import org.wfc.common.core.utils.StringUtils;
/**
* @author ruoyi 序列生成类
* @author wfc 序列生成类
*/
public class Seq
{
@@ -10,7 +10,7 @@ import org.wfc.common.core.exception.UtilException;
/**
* 提供通用唯一识别码(universally unique identifier)(UUID)实现
*
* @author ruoyi
* @author wfc
*/
public final class UUID implements java.io.Serializable, Comparable<UUID>
{
@@ -17,7 +17,7 @@ import org.wfc.common.core.web.page.TableDataInfo;
/**
* web层通用数据处理
*
* @author ruoyi
* @author wfc
*/
public class BaseController
{
@@ -8,7 +8,7 @@ import org.wfc.common.core.utils.StringUtils;
/**
* 操作消息提醒
*
* @author ruoyi
* @author wfc
*/
public class AjaxResult extends HashMap<String, Object>
{
@@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonInclude;
/**
* Entity基类
*
* @author ruoyi
* @author wfc
*/
public class BaseEntity implements Serializable
{
@@ -6,7 +6,7 @@ import java.util.List;
/**
* Tree基类
*
* @author ruoyi
* @author wfc
*/
public class TreeEntity extends BaseEntity
{
@@ -5,7 +5,7 @@ import org.wfc.common.core.utils.StringUtils;
/**
* 分页数据
*
* @author ruoyi
* @author wfc
*/
public class PageDomain
{
@@ -6,7 +6,7 @@ import java.util.List;
/**
* 表格分页数据对象
*
* @author ruoyi
* @author wfc
*/
public class TableDataInfo implements Serializable
{
@@ -6,7 +6,7 @@ import org.wfc.common.core.utils.ServletUtils;
/**
* 表格数据处理
*
* @author ruoyi
* @author wfc
*/
public class TableSupport
{
@@ -10,7 +10,7 @@ import java.lang.annotation.Target;
/**
* 自定义xss校验注解
*
* @author ruoyi
* @author wfc
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(value = { ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.PARAMETER })
@@ -9,7 +9,7 @@ import org.wfc.common.core.utils.StringUtils;
/**
* 自定义xss校验注解实现
*
* @author ruoyi
* @author wfc
*/
public class XssValidator implements ConstraintValidator<Xss, String>
{
+1 -1
View File
@@ -17,7 +17,7 @@
<dependencies>
<!-- RuoYi Common Security -->
<!-- WFC Common Security -->
<dependency>
<groupId>org.wfc</groupId>
<artifactId>wfc-common-security</artifactId>
@@ -9,7 +9,7 @@ import java.lang.annotation.Target;
/**
* 数据权限过滤注解
*
* @author ruoyi
* @author wfc
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@@ -20,7 +20,7 @@ import org.wfc.system.api.model.LoginUser;
/**
* 数据过滤处理
*
* @author ruoyi
* @author wfc
*/
@Aspect
@Component
@@ -10,7 +10,7 @@ import com.baomidou.dynamic.datasource.annotation.DS;
/**
* 主库数据源
*
* @author ruoyi
* @author wfc
*/
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@@ -10,7 +10,7 @@ import com.baomidou.dynamic.datasource.annotation.DS;
/**
* 从库数据源
*
* @author ruoyi
* @author wfc
*/
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
+1 -1
View File
@@ -17,7 +17,7 @@
<dependencies>
<!-- RuoYi Common Security -->
<!-- WFC Common Security -->
<dependency>
<groupId>org.wfc</groupId>
<artifactId>wfc-common-security</artifactId>
@@ -11,7 +11,7 @@ import org.wfc.common.log.enums.OperatorType;
/**
* 自定义操作日志记录注解
*
* @author ruoyi
* @author wfc
*
*/
@Target({ ElementType.PARAMETER, ElementType.METHOD })
@@ -32,7 +32,7 @@ import org.wfc.system.api.domain.SysOperLog;
/**
* 操作日志记录处理
*
* @author ruoyi
* @author wfc
*/
@Aspect
@Component
@@ -3,7 +3,7 @@ package org.wfc.common.log.enums;
/**
* 操作状态
*
* @author ruoyi
* @author wfc
*
*/
public enum BusinessStatus
@@ -3,7 +3,7 @@ package org.wfc.common.log.enums;
/**
* Business type defination
*
* @author ruoyi
* @author wfc
*/
public enum BusinessType
{
@@ -3,7 +3,7 @@ package org.wfc.common.log.enums;
/**
* 操作人类别
*
* @author ruoyi
* @author wfc
*/
public enum OperatorType
{
@@ -5,7 +5,7 @@ import com.alibaba.fastjson2.filter.SimplePropertyPreFilter;
/**
* 排除JSON敏感属性
*
* @author ruoyi
* @author wfc
*/
public class PropertyPreExcludeFilter extends SimplePropertyPreFilter
{
@@ -10,7 +10,7 @@ import org.wfc.system.api.domain.SysOperLog;
/**
* 异步调用日志服务
*
* @author ruoyi
* @author wfc
*/
@Service
public class AsyncLogService
+1 -1
View File
@@ -23,7 +23,7 @@
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<!-- RuoYi Common Core-->
<!-- WFC Common Core-->
<dependency>
<groupId>org.wfc</groupId>
<artifactId>wfc-common-core</artifactId>
@@ -12,7 +12,7 @@ import org.wfc.common.core.constant.Constants;
/**
* Redis使用FastJson序列化
*
* @author ruoyi
* @author wfc
*/
public class FastJson2JsonRedisSerializer<T> implements RedisSerializer<T>
{
@@ -13,7 +13,7 @@ import org.springframework.data.redis.serializer.StringRedisSerializer;
/**
* redis配置
*
* @author ruoyi
* @author wfc
*/
@Configuration
@EnableCaching
@@ -16,7 +16,7 @@ import org.springframework.stereotype.Component;
/**
* spring redis 工具类
*
* @author ruoyi
* @author wfc
**/
@SuppressWarnings(value = { "unchecked", "rawtypes" })
@Component
+2 -2
View File
@@ -22,13 +22,13 @@
<artifactId>spring-webmvc</artifactId>
</dependency>
<!-- RuoYi Api System -->
<!-- WFC Api System -->
<dependency>
<groupId>org.wfc</groupId>
<artifactId>wfc-api-system</artifactId>
</dependency>
<!-- RuoYi Common Redis-->
<!-- WFC Common Redis-->
<dependency>
<groupId>org.wfc</groupId>
<artifactId>wfc-common-redis</artifactId>
@@ -7,7 +7,7 @@ import java.lang.annotation.*;
* 自定义feign注解
* 添加basePackages路径
*
* @author ruoyi
* @author wfc
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@@ -5,7 +5,7 @@ import java.lang.annotation.*;
/**
* 内部认证注解
*
* @author ruoyi
* @author wfc
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@@ -3,7 +3,7 @@ package org.wfc.common.security.annotation;
/**
* 权限注解的验证模式
*
* @author ruoyi
* @author wfc
*
*/
public enum Logical
@@ -8,7 +8,7 @@ import java.lang.annotation.Target;
/**
* 登录认证:只有登录之后才能进入该方法
*
* @author ruoyi
* @author wfc
*
*/
@Retention(RetentionPolicy.RUNTIME)
@@ -8,7 +8,7 @@ import java.lang.annotation.Target;
/**
* 权限认证:必须具有指定权限才能进入该方法
*
* @author ruoyi
* @author wfc
*
*/
@Retention(RetentionPolicy.RUNTIME)
@@ -8,7 +8,7 @@ import java.lang.annotation.Target;
/**
* 角色认证:必须具有指定角色标识才能进入该方法
*
* @author ruoyi
* @author wfc
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD, ElementType.TYPE })
@@ -14,7 +14,7 @@ import org.wfc.common.security.annotation.InnerAuth;
/**
* 内部服务调用验证处理
*
* @author ruoyi
* @author wfc
*/
@Aspect
@Component
@@ -21,7 +21,7 @@ import org.wfc.system.api.model.LoginUser;
/**
* Token 权限验证,逻辑实现类
*
* @author ruoyi
* @author wfc
*/
public class AuthLogic
{
@@ -7,7 +7,7 @@ import org.wfc.system.api.model.LoginUser;
/**
* Token 权限验证工具类
*
* @author ruoyi
* @author wfc
*/
public class AuthUtil
{
@@ -7,7 +7,7 @@ import org.springframework.context.annotation.Bean;
/**
* 系统配置
*
* @author ruoyi
* @author wfc
*/
public class ApplicationConfig
{
@@ -7,7 +7,7 @@ import org.wfc.common.security.interceptor.HeaderInterceptor;
/**
* 拦截器配置
*
* @author ruoyi
* @author wfc
*/
public class WebMvcConfig implements WebMvcConfigurer
{
Loaded 100 of 300 files, more files were not shown because too many files have changed in this diff. Show more