Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-cloud-core
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-cloud-core
Commits
116aa72f
Commit
116aa72f
authored
Aug 31, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
c09559c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
yd-auth-core/src/main/java/com/yd/auth/core/config/SecurityConfig.java
+2
-0
yd-common/src/main/java/com/yd/common/result/Result.java
+11
-0
yd-gateway/src/main/java/com/yd/gateway/config/GatewayJwtAuthFilterConfig.java
+2
-0
No files found.
yd-auth-core/src/main/java/com/yd/auth/core/config/SecurityConfig.java
View file @
116aa72f
...
@@ -78,6 +78,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
...
@@ -78,6 +78,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
"/coSession/status"
,
"/coSession/status"
,
"/coSession/detail/roomIdAndPwd"
,
"/coSession/detail/roomIdAndPwd"
,
"/coSession/isMy"
,
"/coSession/isMy"
,
"/coSession/link/status"
,
"/coSession/set/link/failure"
,
"/oss/upload/body/json"
,
"/oss/upload/body/json"
,
"/notificationTask/send"
,
"/notificationTask/send"
,
"/subscribe/record/batch"
,
"/subscribe/record/batch"
,
...
...
yd-common/src/main/java/com/yd/common/result/Result.java
View file @
116aa72f
...
@@ -61,6 +61,17 @@ public class Result<T> implements Serializable {
...
@@ -61,6 +61,17 @@ public class Result<T> implements Serializable {
/**
/**
* 失败返回
* 失败返回
*/
*/
public
static
<
T
>
Result
<
T
>
fail
(
int
code
,
String
msg
,
T
data
)
{
Result
<
T
>
result
=
new
Result
<
T
>();
result
.
setCode
(
code
);
result
.
setMsg
(
msg
);
result
.
setData
(
data
);
return
result
;
}
/**
* 失败返回
*/
public
static
<
T
>
Result
<
T
>
fail
(
String
msg
)
{
public
static
<
T
>
Result
<
T
>
fail
(
String
msg
)
{
return
fail
(
500
,
msg
);
return
fail
(
500
,
msg
);
}
}
...
...
yd-gateway/src/main/java/com/yd/gateway/config/GatewayJwtAuthFilterConfig.java
View file @
116aa72f
...
@@ -126,6 +126,8 @@ public class GatewayJwtAuthFilterConfig {
...
@@ -126,6 +126,8 @@ public class GatewayJwtAuthFilterConfig {
"/**/coSession/status"
,
"/**/coSession/status"
,
"/**/coSession/detail/roomIdAndPwd"
,
"/**/coSession/detail/roomIdAndPwd"
,
"/**/coSession/isMy"
,
"/**/coSession/isMy"
,
"/**/coSession/link/status"
,
"/**/coSession/set/link/failure"
,
"/**/oss/upload/body/json"
,
"/**/oss/upload/body/json"
,
"/**/notificationTask/send"
,
"/**/notificationTask/send"
,
"/**/subscribe/record/batch"
,
"/**/subscribe/record/batch"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment