Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
3dbbc6a2
Commit
3dbbc6a2
authored
Oct 22, 2021
by
RuoYi
Browse files
AjaxResult重写put方法,以方便链式调用
parent
d3696f52
Changes
1
Show whitespace changes
Inline
Side-by-side
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/AjaxResult.java
View file @
3dbbc6a2
...
@@ -147,13 +147,15 @@ public class AjaxResult extends HashMap<String, Object>
...
@@ -147,13 +147,15 @@ public class AjaxResult extends HashMap<String, Object>
}
}
/**
/**
* 链式调用
*
方便
链式调用
*
*
* @param key 键
* @param key 键
* @param value
内容
* @param value
值
* @return
警告消息
* @return
数据对象
*/
*/
public
AjaxResult
put
(
String
key
,
Object
value
)
{
@Override
public
AjaxResult
put
(
String
key
,
Object
value
)
{
super
.
put
(
key
,
value
);
super
.
put
(
key
,
value
);
return
this
;
return
this
;
}
}
...
...
Write
Preview
Supports
Markdown
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