Commit 2d7d137a authored by abbfun's avatar abbfun Committed by Gitee

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

AjaxResult链式调用
parent c2a179e9
......@@ -145,4 +145,16 @@ public class AjaxResult extends HashMap<String, Object>
{
return new AjaxResult(code, msg, null);
}
/**
* 链式调用
*
* @param key 键
* @param value 内容
* @return 警告消息
*/
public AjaxResult put(String key, Object value) {
super.put(key, value);
return this;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment