This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置结果附件
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user