feat(微服务平台重命名): 去除ruoyi相关标识

This commit is contained in:
OTTO 2024-05-27 16:51:36 +08:00
parent ad69989a8e
commit efb5edce16
347 changed files with 626 additions and 635 deletions

1
.gitignore vendored
View File

@ -47,4 +47,3 @@ nbdist/
!*/build/*.java
!*/build/*.html
!*/build/*.xml
/ruoyi-react/

View File

@ -12,12 +12,12 @@
<artifactId>microservices-api-system</artifactId>
<description>
ruoyi-api-system系统接口模块
microservices-api-system系统接口模块
</description>
<dependencies>
<!-- RuoYi Common Core-->
<!-- Microservices Common Core-->
<dependency>
<groupId>com.microservices</groupId>
<artifactId>microservices-common-core</artifactId>

View File

@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.*;
/**
* 用户服务
*
* @author ruoyi
* @author microservices
*/
@FeignClient(contextId = "remoteCmsService", value = ServiceNameConstants.CMS_SERVICE, fallbackFactory = RemoteCmsFallbackFactory.class)
public interface RemoteCmsService {

View File

@ -15,8 +15,8 @@ import java.util.List;
/**
* 文件服务
*
* @author ruoyi
*
* @author microservices
*/
@FeignClient(contextId = "remoteFileService", value = ServiceNameConstants.FILE_SERVICE, fallbackFactory = RemoteFileFallbackFactory.class)
public interface RemoteFileService {

View File

@ -13,8 +13,8 @@ import org.springframework.web.bind.annotation.RequestHeader;
/**
* 日志服务
*
* @author ruoyi
*
* @author microservices
*/
@FeignClient(contextId = "remoteLogService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteLogFallbackFactory.class)
public interface RemoteLogService

View File

@ -13,7 +13,7 @@ import java.util.List;
/**
* 用户服务
*
* @author ruoyi
* @author microservices
*/
@FeignClient(contextId = "remoteZoneService", value = ServiceNameConstants.ZONE_SERVICE, fallbackFactory = RemoteCmsFallbackFactory.class)
public interface RemoteZoneService {

View File

@ -9,7 +9,7 @@ import java.util.Date;
/**
* 文件管理对象 sys_file_info
*
* @author ruoyi
* @author microservices
* @date 2021-12-29
*/
@Data

View File

@ -6,7 +6,7 @@ import lombok.Data;
/**
* Gitlink简单用户对象
*
* @author ruoyi
* @author microservices
*/
@Data

View File

@ -10,7 +10,7 @@ import java.io.Serializable;
/**
* 角色表 sys_role
*
* @author ruoyi
* @author microservices
*/
@Data
public class SimpleSysRole implements Serializable {

View File

@ -8,7 +8,7 @@ import java.io.Serializable;
/**
* 简单用户对象 sys_user
*
* @author ruoyi
* @author microservices
*/
@Data

View File

@ -14,8 +14,8 @@ import java.util.List;
/**
* 部门表 sys_dept
*
* @author ruoyi
*
* @author microservices
*/
@Data
@ApiModel("组织Model")

View File

@ -12,8 +12,8 @@ import javax.validation.constraints.Size;
/**
* 字典数据表 sys_dict_data
*
* @author ruoyi
*
* @author microservices
*/
public class SysDictData extends BaseEntity
{

View File

@ -12,8 +12,8 @@ import javax.validation.constraints.Size;
/**
* 字典类型表 sys_dict_type
*
* @author ruoyi
*
* @author microservices
*/
public class SysDictType extends BaseEntity
{

View File

@ -5,8 +5,8 @@ import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 文件信息
*
* @author ruoyi
*
* @author microservices
*/
public class SysFile
{

View File

@ -8,7 +8,7 @@ import lombok.Data;
/**
* 文件管理对象 sys_file_info
*
* @author ruoyi
* @author microservices
* @date 2021-12-29
*/
@Data

View File

@ -9,8 +9,8 @@ import java.util.Date;
/**
* 系统访问记录表 sys_logininfor
*
* @author ruoyi
*
* @author microservices
*/
public class SysLogininfor extends BaseEntity
{

View File

@ -10,8 +10,8 @@ import javax.validation.constraints.Size;
/**
* 通知公告表 sys_notice
*
* @author ruoyi
*
* @author microservices
*/
public class SysNotice extends BaseEntity
{

View File

@ -9,8 +9,8 @@ import java.util.Date;
/**
* 操作日志记录表 oper_log
*
* @author ruoyi
*
* @author microservices
*/
public class SysOperLog extends BaseEntity
{

View File

@ -12,8 +12,8 @@ import java.util.Set;
/**
* 角色表 sys_role
*
* @author ruoyi
*
* @author microservices
*/
@Data
public class SysRole extends BaseEntity

View File

@ -18,7 +18,7 @@ import java.util.List;
/**
* 用户对象 sys_user
*
* @author ruoyi
* @author microservices
*/
@Data

View File

@ -11,7 +11,7 @@ import org.springframework.stereotype.Component;
/**
* 内容管理服务降级处理
*
* @author ruoyi
* @author microservices
*/
@Component
public class RemoteCmsFallbackFactory implements FallbackFactory<RemoteCmsService> {

View File

@ -14,7 +14,7 @@ import java.util.List;
/**
* 部门服务降级处理
*
* @author ruoyi
* @author microservices
*/
@Component
public class RemoteDeptFallbackFactory implements FallbackFactory<RemoteDeptService> {

View File

@ -14,8 +14,8 @@ import java.util.List;
/**
* 文件服务降级处理
*
* @author ruoyi
*
* @author microservices
*/
@Component
public class RemoteFileFallbackFactory implements FallbackFactory<RemoteFileService>

View File

@ -11,8 +11,8 @@ import org.springframework.stereotype.Component;
/**
* 日志服务降级处理
*
* @author ruoyi
*
* @author microservices
*/
@Component
public class RemoteLogFallbackFactory implements FallbackFactory<RemoteLogService>

View File

@ -10,7 +10,7 @@ import org.springframework.stereotype.Component;
/**
* 用户服务降级处理
*
* @author ruoyi
* @author microservices
*/
@Component
public class RemotePmsFallbackFactory implements FallbackFactory<RemotePmsService> {

View File

@ -17,8 +17,8 @@ import java.util.Set;
/**
* 用户服务降级处理
*
* @author ruoyi
*
* @author microservices
*/
@Component
public class RemoteUserFallbackFactory implements FallbackFactory<RemoteUserService>

View File

@ -13,7 +13,7 @@ import java.util.List;
/**
* 特色专区服务降级处理
*
* @author ruoyi
* @author microservices
*/
@Component
public class RemoteZoneFallbackFactory implements FallbackFactory<RemoteZoneService> {

View File

@ -8,7 +8,7 @@ import java.io.Serializable;
/**
* 用户信息
*
* @author ruoyi
* @author microservices
*/
@Data
public class LoginUser implements Serializable {

View File

@ -16,7 +16,7 @@
<packaging>pom</packaging>
<description>
ruoyi-api系统接口
microservices-api系统接口
</description>
</project>

View File

@ -11,7 +11,7 @@
<artifactId>microservices-auth</artifactId>
<description>
ruoyi-auth认证授权中心
microservices-auth认证授权中心
</description>
<dependencies>
@ -45,8 +45,8 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- RuoYi Common Security-->
<!-- Microservices Common Security-->
<dependency>
<groupId>com.microservices</groupId>
<artifactId>microservices-common-security</artifactId>

View File

@ -8,7 +8,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
/**
* 认证授权中心
*
* @author ruoyi
* @author microservices
*/
@EnableRyFeignClients
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})

View File

@ -20,8 +20,8 @@ import javax.servlet.http.HttpServletRequest;
/**
* token 控制
*
* @author ruoyi
*
* @author microservices
*/
@RestController
public class TokenController

View File

@ -2,8 +2,8 @@ package com.microservices.auth.form;
/**
* 用户登录对象
*
* @author ruoyi
*
* @author microservices
*/
public class LoginBody
{

View File

@ -2,8 +2,8 @@ package com.microservices.auth.form;
/**
* 用户注册对象
*
* @author ruoyi
*
* @author microservices
*/
public class RegisterBody extends LoginBody
{

View File

@ -20,8 +20,8 @@ import org.springframework.stereotype.Component;
/**
* 登录校验方法
*
* @author ruoyi
*
* @author microservices
*/
@Component
public class SysLoginService

View File

@ -13,8 +13,8 @@ import java.util.concurrent.TimeUnit;
/**
* 登录密码方法
*
* @author ruoyi
*
* @author microservices
*/
@Component
public class SysPasswordService

View File

@ -11,8 +11,8 @@ import org.springframework.stereotype.Component;
/**
* 记录日志方法
*
* @author ruoyi
*
* @author microservices
*/
@Component
public class SysRecordLogService

View File

@ -6,7 +6,7 @@ server:
spring:
application:
# 应用名称
name: ruoyi-auth
name: microservices-auth
config:
activate:
# 环境配置

View File

@ -6,7 +6,7 @@ server:
spring:
application:
# 应用名称
name: ruoyi-auth
name: microservices-auth
profiles:
# 环境配置
active: dev

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 日志存放路径 -->
<property name="log.path" value="logs/ruoyi-auth" />
<property name="log.path" value="logs/microservices-auth"/>
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />

View File

@ -12,6 +12,6 @@
<artifactId>microservices-common-async</artifactId>
<description>
ruoyi-common-async异步
microservices-common-async异步
</description>
</project>

View File

@ -12,7 +12,7 @@
<artifactId>microservices-common-core</artifactId>
<description>
ruoyi-common-core核心模块
microservices-common-core核心模块
</description>
<dependencies>

View File

@ -12,8 +12,8 @@ import java.math.BigDecimal;
/**
* 自定义导出Excel数据注解
*
* @author ruoyi
*
* @author microservices
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)

View File

@ -7,8 +7,8 @@ import java.lang.annotation.Target;
/**
* Excel注解集
*
* @author ruoyi
*
* @author microservices
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.constant;
/**
* 缓存常量信息
*
* @author ruoyi
*
* @author microservices
*/
public class CacheConstants
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.constant;
/**
* 通用常量信息
*
* @author ruoyi
*
* @author microservices
*/
public class Constants
{
@ -120,7 +120,7 @@ public class Constants
/**
* 定时任务白名单配置仅允许访问的包名如其他需要可以自行添加
*/
public static final String[] JOB_WHITELIST_STR = {"com.ruoyi"};
public static final String[] JOB_WHITELIST_STR = {"com.microservices"};
/**
* JSON类型
*/
@ -134,5 +134,5 @@ public class Constants
* 定时任务违规的字符
*/
public static final String[] JOB_ERROR_STR = {"java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
"org.springframework", "org.apache", "com.ruoyi.common.core.utils.file"};
"org.springframework", "org.apache", "com.microservices.common.core.utils.file"};
}

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.constant;
/**
* 代码生成通用常量
*
* @author ruoyi
*
* @author microservices
*/
public class GenConstants
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.constant;
/**
* 返回状态码
*
* @author ruoyi
*
* @author microservices
*/
public class HttpStatus
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.constant;
/**
* 任务调度通用常量
*
* @author ruoyi
*
* @author microservices
*/
public class ScheduleConstants
{

View File

@ -3,7 +3,7 @@ package com.microservices.common.core.constant;
/**
* 权限相关通用常量
*
* @author ruoyi
* @author microservices
*/
public class SecurityConstants
{

View File

@ -3,7 +3,7 @@ package com.microservices.common.core.constant;
/**
* 服务名称
*
* @author ruoyi
* @author microservices
*/
public class ServiceNameConstants {
/**

View File

@ -3,7 +3,7 @@ package com.microservices.common.core.constant;
/**
* Token的Key常量
*
* @author ruoyi
* @author microservices
*/
public class TokenConstants {
/**

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.constant;
/**
* 用户常量信息
*
* @author ruoyi
*
* @author microservices
*/
public class UserConstants
{

View File

@ -12,7 +12,7 @@ import java.util.concurrent.ConcurrentHashMap;
* 获取当前线程变量中的 用户id用户名称Token等信息
* 注意 必须在网关通过请求头的方法传入同时在HeaderInterceptor拦截器设置值 否则这里无法获取
*
* @author ruoyi
* @author microservices
*/
public class SecurityContextHolder
{

View File

@ -7,7 +7,7 @@ import java.io.Serializable;
/**
* 响应信息主体
*
* @author ruoyi
* @author microservices
*/
public class R<T> implements Serializable
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.enums;
/**
* 用户状态
*
* @author ruoyi
*
* @author microservices
*/
public enum UserStatus
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.exception;
/**
* 验证码错误异常类
*
* @author ruoyi
*
* @author microservices
*/
public class CaptchaException extends RuntimeException
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.exception;
/**
* 检查异常
*
* @author ruoyi
*
* @author microservices
*/
public class CheckedException extends RuntimeException
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.exception;
/**
* 演示模式异常
*
* @author ruoyi
*
* @author microservices
*/
public class DemoModeException extends RuntimeException
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.exception;
/**
* 全局异常
*
* @author ruoyi
*
* @author microservices
*/
public class GlobalException extends RuntimeException
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.exception;
/**
* 内部认证异常
*
* @author ruoyi
*
* @author microservices
*/
public class InnerAuthException extends RuntimeException
{

View File

@ -3,7 +3,7 @@ package com.microservices.common.core.exception;
/**
* 多身份异常
*
* @author ruoyi
* @author microservices
*/
public final class MultiIdentityException extends RuntimeException {
private static final long serialVersionUID = 1L;

View File

@ -3,7 +3,7 @@ package com.microservices.common.core.exception;
/**
* 业务异常
*
* @author ruoyi
* @author microservices
*/
public final class NotFoundException extends RuntimeException {
private static final long serialVersionUID = 1L;

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.exception;
/**
* 权限异常
*
* @author ruoyi
*
* @author microservices
*/
public class PreAuthorizeException extends RuntimeException
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.exception;
/**
* 业务异常
*
* @author ruoyi
*
* @author microservices
*/
public final class ServiceException extends RuntimeException
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.exception;
/**
* 工具类异常
*
* @author ruoyi
*
* @author microservices
*/
public class UtilException extends RuntimeException
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.exception.auth;
/**
* 未能通过的登录认证异常
*
* @author ruoyi
*
* @author microservices
*/
public class NotLoginException extends RuntimeException
{

View File

@ -4,8 +4,8 @@ import org.apache.commons.lang3.StringUtils;
/**
* 未能通过的权限认证异常
*
* @author ruoyi
*
* @author microservices
*/
public class NotPermissionException extends RuntimeException
{

View File

@ -4,8 +4,8 @@ import org.apache.commons.lang3.StringUtils;
/**
* 未能通过的角色认证异常
*
* @author ruoyi
*
* @author microservices
*/
public class NotRoleException extends RuntimeException
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.exception.base;
/**
* 基础异常
*
* @author ruoyi
*
* @author microservices
*/
public class BaseException extends RuntimeException
{

View File

@ -4,8 +4,8 @@ import com.microservices.common.core.exception.base.BaseException;
/**
* 文件信息异常类
*
* @author ruoyi
*
* @author microservices
*/
public class FileException extends BaseException
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.exception.file;
/**
* 文件名称超长限制异常类
*
* @author ruoyi
*
* @author microservices
*/
public class FileNameLengthLimitExceededException extends FileException
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.exception.file;
/**
* 文件名大小限制异常类
*
* @author ruoyi
*
* @author microservices
*/
public class FileSizeLimitExceededException extends FileException
{

View File

@ -5,8 +5,8 @@ import java.io.PrintWriter;
/**
* 文件上传异常类
*
* @author ruoyi
*
* @author microservices
*/
public class FileUploadException extends Exception
{

View File

@ -4,8 +4,8 @@ import java.util.Arrays;
/**
* 文件上传 误异常类
*
* @author ruoyi
*
* @author microservices
*/
public class InvalidExtensionException extends FileUploadException
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.exception.job;
/**
* 计划策略异常
*
* @author ruoyi
*
* @author microservices
*/
public class TaskException extends Exception
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.exception.user;
/**
* 验证码失效异常类
*
* @author ruoyi
*
* @author microservices
*/
public class CaptchaExpireException extends UserException
{

View File

@ -4,8 +4,8 @@ import com.microservices.common.core.exception.base.BaseException;
/**
* 用户信息异常类
*
* @author ruoyi
*
* @author microservices
*/
public class UserException extends BaseException
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.exception.user;
/**
* 用户密码不正确或不符合规范异常类
*
* @author ruoyi
*
* @author microservices
*/
public class UserPasswordNotMatchException extends UserException
{

View File

@ -7,8 +7,8 @@ import java.nio.charset.StandardCharsets;
/**
* 字符集工具类
*
* @author ruoyi
*
* @author microservices
*/
public class CharsetKit
{

View File

@ -11,8 +11,8 @@ import java.util.Set;
/**
* 类型转换器
*
* @author ruoyi
*
* @author microservices
*/
public class Convert
{

View File

@ -4,8 +4,8 @@ import com.microservices.common.core.utils.StringUtils;
/**
* 字符串格式化
*
* @author ruoyi
*
* @author microservices
*/
public class StrFormatter
{

View File

@ -6,7 +6,7 @@ import java.math.RoundingMode;
/**
* 精确的浮点数运算
*
* @author ruoyi
* @author microservices
*/
public class Arith {

View File

@ -12,7 +12,7 @@ import java.util.Date;
/**
* 时间工具类
*
* @author ruoyi
* @author microservices
*/
public class DateUtils extends org.apache.commons.lang3.time.DateUtils
{

View File

@ -8,7 +8,7 @@ import java.io.StringWriter;
/**
* 错误信息处理类
*
* @author ruoyi
* @author microservices
*/
public class ExceptionUtil
{

View File

@ -12,7 +12,7 @@ import java.util.Map;
/**
* Jwt工具类
*
* @author ruoyi
* @author microservices
*/
public class JwtUtils
{

View File

@ -17,7 +17,7 @@ import java.util.stream.Collectors;
/**
* 分页工具类
*
* @author ruoyi
* @author microservices
*/
public class PageUtils extends PageHelper
{

View File

@ -31,8 +31,8 @@ import java.util.Map;
/**
* 客户端工具类
*
* @author ruoyi
*
* @author microservices
*/
public class ServletUtils
{

View File

@ -9,8 +9,8 @@ import org.springframework.stereotype.Component;
/**
* spring工具类 方便在非spring管理环境中获取bean
*
* @author ruoyi
*
* @author microservices
*/
@Component
public final class SpringUtils implements BeanFactoryPostProcessor

View File

@ -10,8 +10,8 @@ import java.util.Map;
/**
* 字符串工具类
*
* @author ruoyi
*
* @author microservices
*/
public class StringUtils extends org.apache.commons.lang3.StringUtils
{

View File

@ -8,8 +8,8 @@ import java.util.regex.Pattern;
/**
* Bean 工具类
*
* @author ruoyi
*
* @author microservices
*/
public class BeanUtils extends org.springframework.beans.BeanUtils
{

View File

@ -7,8 +7,8 @@ import java.util.Set;
/**
* bean对象属性验证
*
* @author ruoyi
*
* @author microservices
*/
public class BeanValidators
{

View File

@ -10,14 +10,14 @@ import java.util.Objects;
/**
* 文件类型工具类
*
* @author ruoyi
* @author microservices
*/
public class FileTypeUtils
{
/**
* 获取文件类型
* <p>
* 例如: ruoyi.txt, 返回: txt
* 例如: microservices.txt, 返回: txt
*
* @param file 文件名
* @return 后缀不含".")
@ -34,7 +34,7 @@ public class FileTypeUtils
/**
* 获取文件类型
* <p>
* 例如: ruoyi.txt, 返回: txt
* 例如: microservices.txt, 返回: txt
*
* @param fileName 文件名
* @return 后缀不含".")

View File

@ -11,8 +11,8 @@ import java.nio.charset.StandardCharsets;
/**
* 文件处理工具类
*
* @author ruoyi
*
* @author microservices
*/
public class FileUtils
{

View File

@ -13,7 +13,7 @@ import java.util.Arrays;
/**
* 图片处理工具类
*
* @author ruoyi
* @author microservices
*/
public class ImageUtils
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.utils.file;
/**
* 媒体类型工具类
*
* @author ruoyi
*
* @author microservices
*/
public class MimeTypeUtils
{

View File

@ -4,8 +4,8 @@ import com.microservices.common.core.utils.StringUtils;
/**
* 转义和反转义工具类
*
* @author ruoyi
*
* @author microservices
*/
public class EscapeUtil
{

View File

@ -9,7 +9,7 @@ import java.util.regex.Pattern;
/**
* HTML过滤器用于去除XSS漏洞隐患
*
* @author ruoyi
* @author microservices
*/
public final class HTMLFilter
{

View File

@ -9,8 +9,8 @@ import java.net.UnknownHostException;
/**
* 获取IP方法
*
* @author ruoyi
*
* @author microservices
*/
public class IpUtils
{

View File

@ -2,8 +2,8 @@ package com.microservices.common.core.utils.poi;
/**
* Excel数据格式处理适配器
*
* @author ruoyi
*
* @author microservices
*/
public interface ExcelHandlerAdapter
{

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