!347 update ruoyi-common/src/main/java/com/ruoyi/common/core/domain/AjaxResult.java.

Merge pull request !347 from abbfun/N/A
This commit is contained in:
若依 2021-10-22 08:19:00 +00:00 committed by Gitee
commit d3696f5223
1 changed files with 12 additions and 0 deletions

View File

@ -145,4 +145,16 @@ public class AjaxResult extends HashMap<String, Object>
{ {
return new AjaxResult(code, msg, null); return new AjaxResult(code, msg, null);
} }
/**
* 链式调用
*
* @param key
* @param value 内容
* @return 警告消息
*/
public AjaxResult put(String key, Object value) {
super.put(key, value);
return this;
}
} }