mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-23 20:45:18 +00:00
AjaxResult重写put方法,以方便链式调用
This commit is contained in:
@@ -58,6 +58,20 @@ public class AjaxResult extends HashMap<String, Object>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 方便链式调用
|
||||||
|
*
|
||||||
|
* @param key
|
||||||
|
* @param value
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AjaxResult put(String key, Object value)
|
||||||
|
{
|
||||||
|
super.put(key, value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 返回成功消息
|
* 返回成功消息
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user