Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-backend
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
framework
cloud-backend
Commits
59e3e981
Commit
59e3e981
authored
Jul 12, 2021
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.0.0
parent
cf3bd1d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
common-utils/src/main/java/com/zq/common/vo/ResultVo.java
+0
-9
No files found.
common-utils/src/main/java/com/zq/common/vo/ResultVo.java
View file @
59e3e981
...
...
@@ -2,7 +2,6 @@ package com.zq.common.vo;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.zq.common.context.ThreadContext
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
@@ -33,14 +32,10 @@ public class ResultVo<T> implements Serializable {
private
T
data
;
public
static
ResultVo
success
()
{
ThreadContext
.
close
();
return
success
(
null
);
}
public
static
<
E
>
ResultVo
<
E
>
success
(
E
data
)
{
ThreadContext
.
close
();
ResultVo
<
E
>
result
=
new
ResultVo
<>();
result
.
setSuccess
(
true
);
result
.
setData
(
data
);
...
...
@@ -48,14 +43,10 @@ public class ResultVo<T> implements Serializable {
}
public
static
ResultVo
fail
(
String
errMsg
)
{
ThreadContext
.
close
();
return
fail
(
500
,
errMsg
);
}
public
static
ResultVo
fail
(
int
errCode
,
String
errMsg
)
{
ThreadContext
.
close
();
ResultVo
result
=
new
ResultVo
<>();
result
.
setSuccess
(
false
);
result
.
setErrCode
(
errCode
);
...
...
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