File tree 22 files changed +38
-22
lines changed
springboot-starter-data-authorization
src/main/java/com/codingapi/springboot/authorization/interceptor
springboot-starter-data-fast
springboot-starter-security
22 files changed +38
-22
lines changed Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >com.codingapi.springboot</groupId >
8
8
<artifactId >example-app</artifactId >
9
- <version >3.3.67 </version >
9
+ <version >3.3.68 </version >
10
10
<relativePath >../pom.xml</relativePath >
11
11
</parent >
12
12
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >com.codingapi.springboot</groupId >
8
8
<artifactId >example-app</artifactId >
9
- <version >3.3.67 </version >
9
+ <version >3.3.68 </version >
10
10
<relativePath >../pom.xml</relativePath >
11
11
</parent >
12
12
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >com.codingapi.springboot</groupId >
8
8
<artifactId >example-app</artifactId >
9
- <version >3.3.67 </version >
9
+ <version >3.3.68 </version >
10
10
<relativePath >../pom.xml</relativePath >
11
11
</parent >
12
12
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >com.codingapi.springboot</groupId >
8
8
<artifactId >springboot-example</artifactId >
9
- <version >3.3.67 </version >
9
+ <version >3.3.68 </version >
10
10
<relativePath >../pom.xml</relativePath >
11
11
</parent >
12
12
<packaging >pom</packaging >
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >com.codingapi.springboot</groupId >
8
8
<artifactId >example-domain</artifactId >
9
- <version >3.3.67 </version >
9
+ <version >3.3.68 </version >
10
10
<relativePath >../pom.xml</relativePath >
11
11
</parent >
12
12
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >com.codingapi.springboot</groupId >
8
8
<artifactId >example-domain</artifactId >
9
- <version >3.3.67 </version >
9
+ <version >3.3.68 </version >
10
10
<relativePath >../pom.xml</relativePath >
11
11
</parent >
12
12
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >com.codingapi.springboot</groupId >
7
7
<artifactId >springboot-example</artifactId >
8
- <version >3.3.67 </version >
8
+ <version >3.3.68 </version >
9
9
<relativePath >../pom.xml</relativePath >
10
10
</parent >
11
11
<modelVersion >4.0.0</modelVersion >
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >com.codingapi.springboot</groupId >
7
7
<artifactId >example-infra</artifactId >
8
- <version >3.3.67 </version >
8
+ <version >3.3.68 </version >
9
9
<relativePath >../pom.xml</relativePath >
10
10
</parent >
11
11
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >com.codingapi.springboot</groupId >
7
7
<artifactId >example-infra</artifactId >
8
- <version >3.3.67 </version >
8
+ <version >3.3.68 </version >
9
9
<relativePath >../pom.xml</relativePath >
10
10
</parent >
11
11
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >com.codingapi.springboot</groupId >
8
8
<artifactId >example-infra</artifactId >
9
- <version >3.3.67 </version >
9
+ <version >3.3.68 </version >
10
10
<relativePath >../pom.xml</relativePath >
11
11
</parent >
12
12
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >com.codingapi.springboot</groupId >
8
8
<artifactId >springboot-example</artifactId >
9
- <version >3.3.67 </version >
9
+ <version >3.3.68 </version >
10
10
<relativePath >../pom.xml</relativePath >
11
11
</parent >
12
12
<packaging >pom</packaging >
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >com.codingapi.springboot</groupId >
8
8
<artifactId >springboot-example</artifactId >
9
- <version >3.3.67 </version >
9
+ <version >3.3.68 </version >
10
10
</parent >
11
11
12
12
<artifactId >example-interface</artifactId >
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<artifactId >springboot-example</artifactId >
7
7
<groupId >com.codingapi.springboot</groupId >
8
- <version >3.3.67 </version >
8
+ <version >3.3.68 </version >
9
9
</parent >
10
10
<modelVersion >4.0.0</modelVersion >
11
11
Original file line number Diff line number Diff line change 19
19
</parent >
20
20
21
21
<artifactId >springboot-example</artifactId >
22
- <version >3.3.67 </version >
22
+ <version >3.3.68 </version >
23
23
24
24
<name >springboot-example</name >
25
25
<description >springboot-example project for Spring Boot</description >
Original file line number Diff line number Diff line change 12
12
13
13
<groupId >com.codingapi.springboot</groupId >
14
14
<artifactId >springboot-parent</artifactId >
15
- <version >3.3.67 </version >
15
+ <version >3.3.68 </version >
16
16
17
17
<url >https://github.com/codingapi/springboot-framewrok</url >
18
18
<name >springboot-parent</name >
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >com.codingapi.springboot</groupId >
8
8
<artifactId >springboot-parent</artifactId >
9
- <version >3.3.67 </version >
9
+ <version >3.3.68 </version >
10
10
</parent >
11
11
12
12
<artifactId >springboot-starter-data-authorization</artifactId >
Original file line number Diff line number Diff line change 3
3
import lombok .Getter ;
4
4
5
5
import java .sql .SQLException ;
6
+ import java .util .function .Supplier ;
6
7
7
8
/**
8
9
* SQLRunningContext SQL执行拦截上下文
@@ -55,7 +56,7 @@ public SQLInterceptState intercept(String sql) throws SQLException {
55
56
* @param <T> T
56
57
* @return T
57
58
*/
58
- public <T > T skipDataAuthorization (java . util . function . Supplier <T > supplier ) {
59
+ public <T > T skipDataAuthorization (Supplier <T > supplier ) {
59
60
try {
60
61
skipInterceptor .set (true );
61
62
return (T ) supplier .get ();
@@ -64,4 +65,19 @@ public <T> T skipDataAuthorization(java.util.function.Supplier<T> supplier) {
64
65
}
65
66
}
66
67
68
+
69
+ /**
70
+ * 跳过数据权限拦截
71
+ *
72
+ * @param runnable 业务逻辑
73
+ */
74
+ public void skipDataAuthorization (Runnable runnable ) {
75
+ try {
76
+ skipInterceptor .set (true );
77
+ runnable .run ();
78
+ } finally {
79
+ skipInterceptor .set (false );
80
+ }
81
+ }
82
+
67
83
}
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<artifactId >springboot-parent</artifactId >
7
7
<groupId >com.codingapi.springboot</groupId >
8
- <version >3.3.67 </version >
8
+ <version >3.3.68 </version >
9
9
</parent >
10
10
<modelVersion >4.0.0</modelVersion >
11
11
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<artifactId >springboot-parent</artifactId >
8
8
<groupId >com.codingapi.springboot</groupId >
9
- <version >3.3.67 </version >
9
+ <version >3.3.68 </version >
10
10
</parent >
11
11
12
12
<name >springboot-starter-flow</name >
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<artifactId >springboot-parent</artifactId >
8
8
<groupId >com.codingapi.springboot</groupId >
9
- <version >3.3.67 </version >
9
+ <version >3.3.68 </version >
10
10
</parent >
11
11
12
12
<artifactId >springboot-starter-security</artifactId >
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >com.codingapi.springboot</groupId >
7
7
<artifactId >springboot-parent</artifactId >
8
- <version >3.3.67 </version >
8
+ <version >3.3.68 </version >
9
9
</parent >
10
10
<artifactId >springboot-starter</artifactId >
11
11
Original file line number Diff line number Diff line change 1
1
------------------------------------------------------
2
- CodingApi SpringBoot-Starter 3.3.67
2
+ CodingApi SpringBoot-Starter 3.3.68
3
3
springboot version (${spring-boot.version})
4
4
------------------------------------------------------
You can’t perform that action at this time.
0 commit comments