AjaxResult重写put方法,以方便链式调用

feature/model
RuoYi 3 years ago
parent d3696f5223
commit 3dbbc6a223

@ -146,15 +146,17 @@ public class AjaxResult extends HashMap<String, Object>
return new AjaxResult(code, msg, null); return new AjaxResult(code, msg, null);
} }
/** /**
* * 便
* *
* @param key * @param key
* @param value * @param value
* @return * @return
*/ */
public AjaxResult put(String key, Object value) { @Override
super.put(key, value); public AjaxResult put(String key, Object value)
return this; {
} super.put(key, value);
return this;
}
} }

Loading…
Cancel
Save