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
8740ab4a
Commit
8740ab4a
authored
Aug 14, 2019
by
李秋伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
增加业务行为response Closes #13 See merge request mall/arch/matrix!16
parents
29193962
7a81ead2
Hide 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 @
8740ab4a
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 @
8740ab4a
...
...
@@ -2,6 +2,10 @@ package com.secoo.mall.common.core.bean;
import
java.io.Serializable
;
/**
* 基础响应对象
* @param <T>
*/
public
class
Response
<
T
>
implements
Serializable
{
private
Integer
code
;
...
...
common-util/src/main/java/com/secoo/mall/common/util/response/ResponseUtil.java
View file @
8740ab4a
...
...
@@ -21,7 +21,4 @@ public interface ResponseUtil {
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