Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
matrix
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mall
arch
matrix
Commits
c7258712
Commit
c7258712
authored
Aug 14, 2019
by
QIANGLU
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
64ac49f0
7a81ead2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
3 deletions
+29
-3
BizResponse.java
common-core/src/main/java/com/secoo/mall/common/core/bean/BizResponse.java
+25
-0
Response.java
common-core/src/main/java/com/secoo/mall/common/core/bean/Response.java
+4
-0
ResponseUtil.java
common-util/src/main/java/com/secoo/mall/common/util/response/ResponseUtil.java
+0
-3
No files found.
common-core/src/main/java/com/secoo/mall/common/core/bean/BizResponse.java
0 → 100644
View file @
c7258712
package
com
.
secoo
.
mall
.
common
.
core
.
bean
;
import
com.secoo.mall.common.constant.CommonConstant
;
/**
* 具有业务行为response
*
* @param <T>
*/
public
class
BizResponse
<
T
>
extends
Response
<
T
>
{
public
BizResponse
()
{
}
public
BizResponse
(
Integer
code
,
String
msg
)
{
super
(
code
,
msg
);
}
public
boolean
isSuccess
()
{
return
getCode
()
!=
null
&&
getCode
()
==
CommonConstant
.
Success
.
CODE
;
}
}
common-core/src/main/java/com/secoo/mall/common/core/bean/Response.java
View file @
c7258712
...
@@ -2,6 +2,10 @@ package com.secoo.mall.common.core.bean;
...
@@ -2,6 +2,10 @@ package com.secoo.mall.common.core.bean;
import
java.io.Serializable
;
import
java.io.Serializable
;
/**
* 基础响应对象
* @param <T>
*/
public
class
Response
<
T
>
implements
Serializable
{
public
class
Response
<
T
>
implements
Serializable
{
private
Integer
code
;
private
Integer
code
;
...
...
common-util/src/main/java/com/secoo/mall/common/util/response/ResponseUtil.java
View file @
c7258712
...
@@ -21,7 +21,4 @@ public interface ResponseUtil {
...
@@ -21,7 +21,4 @@ public interface ResponseUtil {
return
response
;
return
response
;
}
}
static
boolean
isSuccess
(
Response
response
)
{
return
response
!=
null
&&
response
.
getCode
()
==
CommonConstant
.
Success
.
CODE
;
}
}
}
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