作者 若依
提交者 Gitee

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

Merge pull request !347 from abbfun/N/A
@@ -145,4 +145,16 @@ public class AjaxResult extends HashMap<String, Object> @@ -145,4 +145,16 @@ public class AjaxResult extends HashMap<String, Object>
145 { 145 {
146 return new AjaxResult(code, msg, null); 146 return new AjaxResult(code, msg, null);
147 } 147 }
  148 +
  149 + /**
  150 + * 链式调用
  151 + *
  152 + * @param key 键
  153 + * @param value 内容
  154 + * @return 警告消息
  155 + */
  156 + public AjaxResult put(String key, Object value) {
  157 + super.put(key, value);
  158 + return this;
  159 + }
148 } 160 }