mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-11 06:39:08 +00:00
AjaxResult重写put方法,以方便链式调用
This commit is contained in:
@@ -57,6 +57,20 @@ public class AjaxResult extends HashMap<String, Object>
|
|||||||
super.put(DATA_TAG, data);
|
super.put(DATA_TAG, data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 方便链式调用
|
||||||
|
*
|
||||||
|
* @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