Kaynağa Gözat

Merge branch 'release' of uskycloud/RuoYi-Cloud into master

gez 2 yıl önce
ebeveyn
işleme
7629f10cf0
100 değiştirilmiş dosya ile 241 ekleme ve 23 silme
  1. BIN
      .DS_Store
  2. 0 1
      .github/FUNDING.yml
  3. 20 0
      base-common/common-cloud-starter/README.md
  4. 112 0
      base-common/common-cloud-starter/pom.xml
  5. 69 0
      base-common/pom.xml
  6. 3 3
      base-common/ruoyi-common-core/pom.xml
  7. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/annotation/Excel.java
  8. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/annotation/Excels.java
  9. 1 1
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java
  10. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/Constants.java
  11. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/GenConstants.java
  12. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/HttpStatus.java
  13. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/ScheduleConstants.java
  14. 5 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/SecurityConstants.java
  15. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/ServiceNameConstants.java
  16. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/TokenConstants.java
  17. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/UserConstants.java
  18. 9 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/context/SecurityContextHolder.java
  19. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/domain/R.java
  20. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/enums/UserStatus.java
  21. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/CaptchaException.java
  22. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/CheckedException.java
  23. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/DemoModeException.java
  24. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/GlobalException.java
  25. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/InnerAuthException.java
  26. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/PreAuthorizeException.java
  27. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/ServiceException.java
  28. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/UtilException.java
  29. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/auth/NotLoginException.java
  30. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/auth/NotPermissionException.java
  31. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/auth/NotRoleException.java
  32. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/base/BaseException.java
  33. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/file/FileException.java
  34. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/file/FileNameLengthLimitExceededException.java
  35. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/file/FileSizeLimitExceededException.java
  36. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/file/InvalidExtensionException.java
  37. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/job/TaskException.java
  38. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/user/CaptchaExpireException.java
  39. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/user/UserException.java
  40. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/user/UserPasswordNotMatchException.java
  41. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/text/CharsetKit.java
  42. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/text/Convert.java
  43. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/text/StrFormatter.java
  44. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/DateUtils.java
  45. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/ExceptionUtil.java
  46. 5 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/JwtUtils.java
  47. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/PageUtils.java
  48. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/ReUtil.java
  49. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/ServletUtils.java
  50. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/SpringUtils.java
  51. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/StringUtils.java
  52. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/bean/BeanUtils.java
  53. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/bean/BeanValidators.java
  54. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/FileTypeUtils.java
  55. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/FileUtils.java
  56. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/ImageUtils.java
  57. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/MimeTypeUtils.java
  58. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/html/EscapeUtil.java
  59. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/html/HTMLFilter.java
  60. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/ip/IpUtils.java
  61. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/poi/ExcelHandlerAdapter.java
  62. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/poi/ExcelUtil.java
  63. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/reflect/ReflectUtils.java
  64. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/sign/Base64.java
  65. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/sql/SqlUtil.java
  66. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/uuid/IdUtils.java
  67. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/uuid/Seq.java
  68. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/uuid/UUID.java
  69. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/controller/BaseController.java
  70. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/domain/AjaxResult.java
  71. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/domain/BaseEntity.java
  72. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/domain/TreeEntity.java
  73. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/page/PageDomain.java
  74. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/page/TableDataInfo.java
  75. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/page/TableSupport.java
  76. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/xss/Xss.java
  77. 0 0
      base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/xss/XssValidator.java
  78. 0 0
      base-common/ruoyi-common-core/src/main/resources/META-INF/spring.factories
  79. 3 3
      base-common/ruoyi-common-datascope/pom.xml
  80. 0 0
      base-common/ruoyi-common-datascope/src/main/java/com/ruoyi/common/datascope/annotation/DataScope.java
  81. 0 0
      base-common/ruoyi-common-datascope/src/main/java/com/ruoyi/common/datascope/aspect/DataScopeAspect.java
  82. 0 0
      base-common/ruoyi-common-datascope/src/main/resources/META-INF/spring.factories
  83. 7 7
      base-common/ruoyi-common-datasource/pom.xml
  84. 0 0
      base-common/ruoyi-common-datasource/src/main/java/com/ruoyi/common/datasource/annotation/Master.java
  85. 0 0
      base-common/ruoyi-common-datasource/src/main/java/com/ruoyi/common/datasource/annotation/Slave.java
  86. 0 0
      base-common/ruoyi-common-datasource/src/main/java/com/ruoyi/common/datasource/env/ApplicationSeataInitializer.java
  87. 0 0
      base-common/ruoyi-common-datasource/src/main/resources/META-INF/spring.factories
  88. 4 5
      base-common/ruoyi-common-log/pom.xml
  89. 0 0
      base-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/annotation/Log.java
  90. 0 0
      base-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/aspect/LogAspect.java
  91. 0 0
      base-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/enums/BusinessStatus.java
  92. 0 0
      base-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/enums/BusinessType.java
  93. 0 0
      base-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/enums/OperatorType.java
  94. 0 0
      base-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/service/AsyncLogService.java
  95. 0 0
      base-common/ruoyi-common-log/src/main/resources/META-INF/spring.factories
  96. 3 3
      base-common/ruoyi-common-redis/pom.xml
  97. 0 0
      base-common/ruoyi-common-redis/src/main/java/com/ruoyi/common/redis/configure/FastJson2JsonRedisSerializer.java
  98. 0 0
      base-common/ruoyi-common-redis/src/main/java/com/ruoyi/common/redis/configure/RedisConfig.java
  99. 0 0
      base-common/ruoyi-common-redis/src/main/java/com/ruoyi/common/redis/service/RedisService.java
  100. 0 0
      base-common/ruoyi-common-redis/src/main/resources/META-INF/spring.factories

BIN
.DS_Store


+ 0 - 1
.github/FUNDING.yml

@@ -1 +0,0 @@
-custom: http://doc.ruoyi.vip/ruoyi-cloud/other/donate.html

+ 20 - 0
base-common/common-cloud-starter/README.md

@@ -0,0 +1,20 @@
+Cloud Quick Starter 项目
+===============
+```
+  - Auth       Shiro集成
+  - AOP        切面编程(自定义注解)
+  - Token       Jwt集成
+  - Cloud       SpringCloud依赖
+  - Common      共同依赖
+```
+
+新建微服务模块,引用此依赖即可。
+引用如下:  
+ 
+```
+    <dependency>
+       <groupId>org.jeecgframework.cloud</groupId>
+       <artifactId>jeecg-common-cloud-starter</artifactId>
+       <version>${jeecgboot.version}</version>
+    </dependency>
+```

+ 112 - 0
base-common/common-cloud-starter/pom.xml

@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <groupId>com.usky</groupId>
+        <artifactId>base-common</artifactId>
+        <version>0.0.1</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>common-cloud-starter</artifactId>
+
+    <dependencies>
+        <!-- SpringCloud Alibaba Nacos -->
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
+        </dependency>
+
+        <!-- SpringCloud Alibaba Nacos Config -->
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
+        </dependency>
+
+        <!-- SpringCloud Alibaba Sentinel -->
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
+        </dependency>
+
+        <!-- SpringBoot Actuator -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
+
+        <!-- Swagger UI -->
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger-ui</artifactId>
+            <version>${swagger.fox.version}</version>
+        </dependency>
+
+        <!-- Mysql Connector -->
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus-boot-starter</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus-generator</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.velocity</groupId>
+            <artifactId>velocity-engine-core</artifactId>
+        </dependency>
+
+        <!-- RuoYi Common DataSource -->
+        <dependency>
+            <groupId>com.ruoyi</groupId>
+            <artifactId>ruoyi-common-datasource</artifactId>
+        </dependency>
+
+        <!-- RuoYi Common DataScope -->
+        <dependency>
+            <groupId>com.ruoyi</groupId>
+            <artifactId>ruoyi-common-datascope</artifactId>
+        </dependency>
+
+        <!-- RuoYi Common Log -->
+        <dependency>
+            <groupId>com.ruoyi</groupId>
+            <artifactId>ruoyi-common-log</artifactId>
+        </dependency>
+
+        <!-- RuoYi Common Swagger -->
+        <dependency>
+            <groupId>com.ruoyi</groupId>
+            <artifactId>ruoyi-common-swagger</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.ruoyi</groupId>
+            <artifactId>service-system-api</artifactId>
+        </dependency>
+
+        <!-- RuoYi Common Security-->
+<!--        <dependency>-->
+<!--            <groupId>com.ruoyi</groupId>-->
+<!--            <artifactId>ruoyi-common-security</artifactId>-->
+<!--        </dependency>-->
+
+<!--        <dependency>-->
+<!--            <groupId>com.usky</groupId>-->
+<!--            <artifactId>usky-common-core</artifactId>-->
+<!--        </dependency>-->
+
+<!--        <dependency>-->
+<!--            <groupId>com.usky</groupId>-->
+<!--            <artifactId>usky-common-mvc</artifactId>-->
+<!--        </dependency>-->
+
+    </dependencies>
+</project>

+ 69 - 0
base-common/pom.xml

@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <groupId>com.usky</groupId>
+        <artifactId>uskycloud</artifactId>
+        <version>0.0.1</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>base-common</artifactId>
+    <packaging>pom</packaging>
+
+    <description>
+        base-common通用模块
+    </description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-lang3</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>commons-io</groupId>
+            <artifactId>commons-io</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>commons-beanutils</groupId>
+            <artifactId>commons-beanutils</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.google.guava</groupId>
+            <artifactId>guava</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+    </dependencies>
+
+    <modules>
+        <module>ruoyi-common-log</module>
+        <module>ruoyi-common-core</module>
+        <module>ruoyi-common-redis</module>
+        <module>ruoyi-common-swagger</module>
+        <module>ruoyi-common-security</module>
+        <module>ruoyi-common-datascope</module>
+		<module>ruoyi-common-datasource</module>
+        <module>common-cloud-starter</module>
+        <module>usky-common-core</module>
+        <module>usky-common-mvc</module>
+        <module>usky-common-spring</module>
+    </modules>
+
+
+
+
+
+</project>

+ 3 - 3
ruoyi-common/ruoyi-common-core/pom.xml → base-common/ruoyi-common-core/pom.xml

@@ -3,9 +3,9 @@
          xmlns="http://maven.apache.org/POM/4.0.0"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <parent>
-        <groupId>com.ruoyi</groupId>
-        <artifactId>ruoyi-common</artifactId>
-        <version>3.5.0</version>
+        <groupId>com.usky</groupId>
+        <artifactId>base-common</artifactId>
+        <version>0.0.1</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/annotation/Excel.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/annotation/Excel.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/annotation/Excels.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/annotation/Excels.java


+ 1 - 1
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java

@@ -10,7 +10,7 @@ public class CacheConstants
     /**
      * 缓存有效期,默认720(分钟)
      */
-    public final static long EXPIRATION = 720;
+    public final static long EXPIRATION = 7200;
 
     /**
      * 缓存刷新时间,默认120(分钟)

+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/Constants.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/Constants.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/GenConstants.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/GenConstants.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/HttpStatus.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/HttpStatus.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/ScheduleConstants.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/ScheduleConstants.java


+ 5 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/SecurityConstants.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/SecurityConstants.java

@@ -12,6 +12,11 @@ public class SecurityConstants
      */
     public static final String DETAILS_USER_ID = "user_id";
 
+    /**
+     * 租户ID字段
+     */
+    public static final String DETAILS_TENANT_ID = "tenant_id";
+
     /**
      * 用户名字段
      */

+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/ServiceNameConstants.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/ServiceNameConstants.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/TokenConstants.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/TokenConstants.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/UserConstants.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/UserConstants.java


+ 9 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/context/SecurityContextHolder.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/context/SecurityContextHolder.java

@@ -56,6 +56,15 @@ public class SecurityContextHolder
         return Convert.toLong(get(SecurityConstants.DETAILS_USER_ID), 0L);
     }
 
+    public static Integer getTenantId()
+    {
+        return Convert.toInt(get(SecurityConstants.DETAILS_TENANT_ID), 0);
+    }
+
+    public static void setTenantId(String tenantId) {
+       set(SecurityConstants.DETAILS_TENANT_ID,tenantId);
+    }
+
     public static void setUserId(String account)
     {
         set(SecurityConstants.DETAILS_USER_ID, account);

+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/domain/R.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/domain/R.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/enums/UserStatus.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/enums/UserStatus.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/CaptchaException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/CaptchaException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/CheckedException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/CheckedException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/DemoModeException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/DemoModeException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/GlobalException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/GlobalException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/InnerAuthException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/InnerAuthException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/PreAuthorizeException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/PreAuthorizeException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/ServiceException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/ServiceException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/UtilException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/UtilException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/auth/NotLoginException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/auth/NotLoginException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/auth/NotPermissionException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/auth/NotPermissionException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/auth/NotRoleException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/auth/NotRoleException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/base/BaseException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/base/BaseException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/file/FileException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/file/FileException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/file/FileNameLengthLimitExceededException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/file/FileNameLengthLimitExceededException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/file/FileSizeLimitExceededException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/file/FileSizeLimitExceededException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/file/InvalidExtensionException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/file/InvalidExtensionException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/job/TaskException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/job/TaskException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/user/CaptchaExpireException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/user/CaptchaExpireException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/user/UserException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/user/UserException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/user/UserPasswordNotMatchException.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/exception/user/UserPasswordNotMatchException.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/text/CharsetKit.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/text/CharsetKit.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/text/Convert.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/text/Convert.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/text/StrFormatter.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/text/StrFormatter.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/DateUtils.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/DateUtils.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/ExceptionUtil.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/ExceptionUtil.java


+ 5 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/JwtUtils.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/JwtUtils.java

@@ -52,6 +52,11 @@ public class JwtUtils
         return getValue(claims, SecurityConstants.USER_KEY);
     }
 
+    public static String getTenantId(Claims claims)
+    {
+        return getValue(claims, SecurityConstants.DETAILS_TENANT_ID);
+    }
+
     /**
      * 根据令牌获取用户标识
      * 

+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/PageUtils.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/PageUtils.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/ReUtil.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/ReUtil.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/ServletUtils.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/ServletUtils.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/SpringUtils.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/SpringUtils.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/StringUtils.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/StringUtils.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/bean/BeanUtils.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/bean/BeanUtils.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/bean/BeanValidators.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/bean/BeanValidators.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/FileTypeUtils.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/FileTypeUtils.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/FileUtils.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/FileUtils.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/ImageUtils.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/ImageUtils.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/MimeTypeUtils.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/MimeTypeUtils.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/html/EscapeUtil.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/html/EscapeUtil.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/html/HTMLFilter.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/html/HTMLFilter.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/ip/IpUtils.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/ip/IpUtils.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/poi/ExcelHandlerAdapter.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/poi/ExcelHandlerAdapter.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/poi/ExcelUtil.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/poi/ExcelUtil.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/reflect/ReflectUtils.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/reflect/ReflectUtils.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/sign/Base64.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/sign/Base64.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/sql/SqlUtil.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/sql/SqlUtil.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/uuid/IdUtils.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/uuid/IdUtils.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/uuid/Seq.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/uuid/Seq.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/uuid/UUID.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/uuid/UUID.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/controller/BaseController.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/controller/BaseController.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/domain/AjaxResult.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/domain/AjaxResult.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/domain/BaseEntity.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/domain/BaseEntity.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/domain/TreeEntity.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/domain/TreeEntity.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/page/PageDomain.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/page/PageDomain.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/page/TableDataInfo.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/page/TableDataInfo.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/page/TableSupport.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/page/TableSupport.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/xss/Xss.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/xss/Xss.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/xss/XssValidator.java → base-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/xss/XssValidator.java


+ 0 - 0
ruoyi-common/ruoyi-common-core/src/main/resources/META-INF/spring.factories → base-common/ruoyi-common-core/src/main/resources/META-INF/spring.factories


+ 3 - 3
ruoyi-common/ruoyi-common-datascope/pom.xml → base-common/ruoyi-common-datascope/pom.xml

@@ -3,9 +3,9 @@
          xmlns="http://maven.apache.org/POM/4.0.0"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <parent>
-        <groupId>com.ruoyi</groupId>
-        <artifactId>ruoyi-common</artifactId>
-        <version>3.5.0</version>
+        <groupId>com.usky</groupId>
+        <artifactId>base-common</artifactId>
+        <version>0.0.1</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     

+ 0 - 0
ruoyi-common/ruoyi-common-datascope/src/main/java/com/ruoyi/common/datascope/annotation/DataScope.java → base-common/ruoyi-common-datascope/src/main/java/com/ruoyi/common/datascope/annotation/DataScope.java


+ 0 - 0
ruoyi-common/ruoyi-common-datascope/src/main/java/com/ruoyi/common/datascope/aspect/DataScopeAspect.java → base-common/ruoyi-common-datascope/src/main/java/com/ruoyi/common/datascope/aspect/DataScopeAspect.java


+ 0 - 0
ruoyi-common/ruoyi-common-datascope/src/main/resources/META-INF/spring.factories → base-common/ruoyi-common-datascope/src/main/resources/META-INF/spring.factories


+ 7 - 7
ruoyi-common/ruoyi-common-datasource/pom.xml → base-common/ruoyi-common-datasource/pom.xml

@@ -3,9 +3,9 @@
          xmlns="http://maven.apache.org/POM/4.0.0"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <parent>
-        <groupId>com.ruoyi</groupId>
-        <artifactId>ruoyi-common</artifactId>
-        <version>3.5.0</version>
+        <groupId>com.usky</groupId>
+        <artifactId>base-common</artifactId>
+        <version>0.0.1</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     
@@ -32,10 +32,10 @@
         </dependency>
         
         <!-- SpringBoot Seata -->
-        <dependency>
-            <groupId>com.alibaba.cloud</groupId>
-            <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
-        </dependency>
+<!--        <dependency>-->
+<!--            <groupId>com.alibaba.cloud</groupId>-->
+<!--            <artifactId>spring-cloud-starter-alibaba-seata</artifactId>-->
+<!--        </dependency>-->
 
     </dependencies>
 </project>

+ 0 - 0
ruoyi-common/ruoyi-common-datasource/src/main/java/com/ruoyi/common/datasource/annotation/Master.java → base-common/ruoyi-common-datasource/src/main/java/com/ruoyi/common/datasource/annotation/Master.java


+ 0 - 0
ruoyi-common/ruoyi-common-datasource/src/main/java/com/ruoyi/common/datasource/annotation/Slave.java → base-common/ruoyi-common-datasource/src/main/java/com/ruoyi/common/datasource/annotation/Slave.java


+ 0 - 0
ruoyi-common/ruoyi-common-datasource/src/main/java/com/ruoyi/common/datasource/env/ApplicationSeataInitializer.java → base-common/ruoyi-common-datasource/src/main/java/com/ruoyi/common/datasource/env/ApplicationSeataInitializer.java


+ 0 - 0
ruoyi-common/ruoyi-common-datasource/src/main/resources/META-INF/spring.factories → base-common/ruoyi-common-datasource/src/main/resources/META-INF/spring.factories


+ 4 - 5
ruoyi-common/ruoyi-common-log/pom.xml → base-common/ruoyi-common-log/pom.xml

@@ -3,20 +3,19 @@
          xmlns="http://maven.apache.org/POM/4.0.0"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <parent>
-        <groupId>com.ruoyi</groupId>
-        <artifactId>ruoyi-common</artifactId>
-        <version>3.5.0</version>
+        <groupId>com.usky</groupId>
+        <artifactId>base-common</artifactId>
+        <version>0.0.1</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     
     <artifactId>ruoyi-common-log</artifactId>
 	
     <description>
-        ruoyi-common-log日志记录
+        base-common-log日志记录
     </description>
 
     <dependencies>
-		
         <!-- RuoYi Common Security -->
         <dependency>
             <groupId>com.ruoyi</groupId>

+ 0 - 0
ruoyi-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/annotation/Log.java → base-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/annotation/Log.java


+ 0 - 0
ruoyi-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/aspect/LogAspect.java → base-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/aspect/LogAspect.java


+ 0 - 0
ruoyi-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/enums/BusinessStatus.java → base-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/enums/BusinessStatus.java


+ 0 - 0
ruoyi-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/enums/BusinessType.java → base-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/enums/BusinessType.java


+ 0 - 0
ruoyi-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/enums/OperatorType.java → base-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/enums/OperatorType.java


+ 0 - 0
ruoyi-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/service/AsyncLogService.java → base-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/service/AsyncLogService.java


+ 0 - 0
ruoyi-common/ruoyi-common-log/src/main/resources/META-INF/spring.factories → base-common/ruoyi-common-log/src/main/resources/META-INF/spring.factories


+ 3 - 3
ruoyi-common/ruoyi-common-redis/pom.xml → base-common/ruoyi-common-redis/pom.xml

@@ -3,9 +3,9 @@
          xmlns="http://maven.apache.org/POM/4.0.0"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <parent>
-        <groupId>com.ruoyi</groupId>
-        <artifactId>ruoyi-common</artifactId>
-        <version>3.5.0</version>
+        <groupId>com.usky</groupId>
+        <artifactId>base-common</artifactId>
+        <version>0.0.1</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     

+ 0 - 0
ruoyi-common/ruoyi-common-redis/src/main/java/com/ruoyi/common/redis/configure/FastJson2JsonRedisSerializer.java → base-common/ruoyi-common-redis/src/main/java/com/ruoyi/common/redis/configure/FastJson2JsonRedisSerializer.java


+ 0 - 0
ruoyi-common/ruoyi-common-redis/src/main/java/com/ruoyi/common/redis/configure/RedisConfig.java → base-common/ruoyi-common-redis/src/main/java/com/ruoyi/common/redis/configure/RedisConfig.java


+ 0 - 0
ruoyi-common/ruoyi-common-redis/src/main/java/com/ruoyi/common/redis/service/RedisService.java → base-common/ruoyi-common-redis/src/main/java/com/ruoyi/common/redis/service/RedisService.java


+ 0 - 0
ruoyi-common/ruoyi-common-redis/src/main/resources/META-INF/spring.factories → base-common/ruoyi-common-redis/src/main/resources/META-INF/spring.factories


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor