Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
be481034
Commit
be481034
authored
Aug 13, 2022
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级新版本
parent
6723d6d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ResponseResult.java
...src/main/java/com/yanzuoguang/util/vo/ResponseResult.java
+5
-2
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/ResponseResult.java
View file @
be481034
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.vo;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.vo;
import
com.yanzuoguang.util.contants.ResultConstants
;
import
com.yanzuoguang.util.contants.ResultConstants
;
import
com.yanzuoguang.util.exception.CodeException
;
import
com.yanzuoguang.util.exception.CodeException
;
import
com.yanzuoguang.util.exception.CodeTargetException
;
import
com.yanzuoguang.util.exception.RuntimeCodeException
;
import
com.yanzuoguang.util.exception.RuntimeCodeException
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -95,8 +96,10 @@ public class ResponseResult<T> extends BaseVo {
...
@@ -95,8 +96,10 @@ public class ResponseResult<T> extends BaseVo {
return
this
.
data
;
return
this
.
data
;
}
}
if
(
this
.
codeError
)
{
if
(
this
.
codeError
&&
this
.
target
!=
null
)
{
throw
new
CodeException
(
this
.
code
,
this
.
message
,
this
.
target
);
throw
new
CodeTargetException
(
this
.
code
,
this
.
message
,
this
.
target
);
}
else
if
(
this
.
codeError
)
{
throw
new
CodeException
(
this
.
code
,
this
.
message
);
}
else
{
}
else
{
throw
new
RuntimeCodeException
(
this
.
code
,
this
.
message
,
this
.
target
);
throw
new
RuntimeCodeException
(
this
.
code
,
this
.
message
,
this
.
target
);
}
}
...
...
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