This commit is contained in:
Redkale
2019-03-05 12:23:21 +08:00
parent 6d3553b0b5
commit 79f8363d47

View File

@@ -207,6 +207,18 @@ public class RetResult<T> {
return attach;
}
/**
* 获取附件元素值
*
* @param name 元素名
* @param defValue 默认值
*
* @return 结果值
*/
public String getAttach(String name, String defValue) {
return attach == null ? defValue : attach.getOrDefault(name, defValue);
}
/**
* 设置结果附件
*