REQ-3046: 返回前端解析后的URL
This commit is contained in:
parent
0ce2a538a4
commit
49db01e038
@ -2,6 +2,7 @@ package cn.axzo.msg.center.service.pending.response.v3.model;
|
||||
|
||||
import cn.axzo.msg.center.service.enums.KVContentType;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
@ -34,10 +35,12 @@ public class ParsedKV {
|
||||
*/
|
||||
private boolean displayOnCard;
|
||||
|
||||
@JsonIgnore
|
||||
public boolean isValueEmpty() {
|
||||
return StringUtils.isBlank(value) || "null".equalsIgnoreCase(value);
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Long getValueAsLong() {
|
||||
if (isValueEmpty())
|
||||
return null;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user