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

master
liuxing 2020-09-19 12:23:30 +08:00
parent 8c1e893657
commit dd0c5a2bfb
1 changed files with 25 additions and 12 deletions

View File

@ -81,6 +81,19 @@ 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;
}
/** /**
* *
* *