|
|
|
@ -146,15 +146,17 @@ 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; |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 方便链式调用 |
|
|
|
|
* |
|
|
|
|
* @param key 键 |
|
|
|
|
* @param value 值 |
|
|
|
|
* @return 数据对象 |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public AjaxResult put(String key, Object value) |
|
|
|
|
{ |
|
|
|
|
super.put(key, value); |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|