Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
12ef6d07
Commit
12ef6d07
authored
Aug 10, 2019
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉多余字段
parent
bed64742
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
63 deletions
+3
-63
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/AjaxResult.java
+3
-63
No files found.
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/AjaxResult.java
View file @
12ef6d07
package
com
.
ruoyi
.
common
.
core
.
domain
;
import
java.util.HashMap
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.ruoyi.common.utils.StringUtils
;
/**
...
...
@@ -14,10 +12,13 @@ public class AjaxResult extends HashMap<String, Object>
{
private
static
final
long
serialVersionUID
=
1L
;
/** 状态码 */
public
static
final
String
CODE_TAG
=
"code"
;
/** 返回内容 */
public
static
final
String
MSG_TAG
=
"msg"
;
/** 数据对象 */
public
static
final
String
DATA_TAG
=
"data"
;
/**
...
...
@@ -44,18 +45,6 @@ public class AjaxResult extends HashMap<String, Object>
}
}
/** 状态类型 */
private
Type
type
;
/** 状态码 */
private
int
code
;
/** 返回内容 */
private
String
msg
;
/** 数据对象 */
private
Object
data
;
/**
* 初始化一个新创建的 AjaxResult 对象,使其表示一个空消息。
*/
...
...
@@ -190,53 +179,4 @@ public class AjaxResult extends HashMap<String, Object>
{
return
new
AjaxResult
(
Type
.
ERROR
,
msg
,
data
);
}
public
Type
getType
()
{
return
type
;
}
public
void
setType
(
Type
type
)
{
this
.
type
=
type
;
}
public
int
getCode
()
{
return
code
;
}
public
void
setCode
(
int
code
)
{
this
.
code
=
code
;
}
public
String
getMsg
()
{
return
msg
;
}
public
void
setMsg
(
String
msg
)
{
this
.
msg
=
msg
;
}
public
Object
getData
()
{
return
data
;
}
public
void
setData
(
Object
data
)
{
this
.
data
=
data
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"code"
,
getCode
())
.
append
(
"msg"
,
getMsg
())
.
append
(
"data"
,
getData
())
.
toString
();
}
}
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