|
@ -10,6 +10,7 @@ public class ZAppPromopt implements Serializable { |
|
|
@Schema(description = "消息等级") |
|
|
@Schema(description = "消息等级") |
|
|
public MessageLevel messageLevel; |
|
|
public MessageLevel messageLevel; |
|
|
|
|
|
|
|
|
|
|
|
public String title; |
|
|
|
|
|
|
|
|
@Schema(description = "主信息") |
|
|
@Schema(description = "主信息") |
|
|
public String info; |
|
|
public String info; |
|
@ -22,6 +23,16 @@ public class ZAppPromopt implements Serializable { |
|
|
@Schema(description = "异常栈信息") |
|
|
@Schema(description = "异常栈信息") |
|
|
public ZAppErrorStackInfo stackInfo; |
|
|
public ZAppErrorStackInfo stackInfo; |
|
|
|
|
|
|
|
|
|
|
|
void setDefaultTitle() { |
|
|
|
|
|
if(messageLevel == MessageLevel.Error) { |
|
|
|
|
|
this.title = "错误"; |
|
|
|
|
|
} else if(messageLevel == MessageLevel.Warn) { |
|
|
|
|
|
this.title = "警告"; |
|
|
|
|
|
} else if(messageLevel == MessageLevel.Info) { |
|
|
|
|
|
this.title = "信息"; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ZAppPromopt(MessageLevel type, String info, ZAppErrorStackInfo stackInfo, List<ZAppPromoptFormsItem> detailInfos) { |
|
|
public ZAppPromopt(MessageLevel type, String info, ZAppErrorStackInfo stackInfo, List<ZAppPromoptFormsItem> detailInfos) { |
|
|
this.messageLevel = type; |
|
|
this.messageLevel = type; |
|
@ -29,6 +40,8 @@ public class ZAppPromopt implements Serializable { |
|
|
this.stackInfo = stackInfo; |
|
|
this.stackInfo = stackInfo; |
|
|
this.detailInfo = detailInfos; |
|
|
this.detailInfo = detailInfos; |
|
|
this.detailInfoType = ZAppPromoptDetailInfoType.Forms; |
|
|
this.detailInfoType = ZAppPromoptDetailInfoType.Forms; |
|
|
|
|
|
|
|
|
|
|
|
setDefaultTitle(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public ZAppPromopt(MessageLevel type, String info, ZAppErrorStackInfo stackInfo, String detailInfos) { |
|
|
public ZAppPromopt(MessageLevel type, String info, ZAppErrorStackInfo stackInfo, String detailInfos) { |
|
@ -37,6 +50,9 @@ public class ZAppPromopt implements Serializable { |
|
|
this.stackInfo = stackInfo; |
|
|
this.stackInfo = stackInfo; |
|
|
this.detailInfo = detailInfos; |
|
|
this.detailInfo = detailInfos; |
|
|
this.detailInfoType = ZAppPromoptDetailInfoType.Text; |
|
|
this.detailInfoType = ZAppPromoptDetailInfoType.Text; |
|
|
|
|
|
|
|
|
|
|
|
setDefaultTitle(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public ZAppPromopt(MessageLevel type, String info, ZAppErrorStackInfo stackInfo, ZAppPromoptTable detailInfos) { |
|
|
public ZAppPromopt(MessageLevel type, String info, ZAppErrorStackInfo stackInfo, ZAppPromoptTable detailInfos) { |
|
@ -45,6 +61,8 @@ public class ZAppPromopt implements Serializable { |
|
|
this.stackInfo = stackInfo; |
|
|
this.stackInfo = stackInfo; |
|
|
this.detailInfo = detailInfos; |
|
|
this.detailInfo = detailInfos; |
|
|
this.detailInfoType = ZAppPromoptDetailInfoType.Table; |
|
|
this.detailInfoType = ZAppPromoptDetailInfoType.Table; |
|
|
|
|
|
setDefaultTitle(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -52,11 +70,15 @@ public class ZAppPromopt implements Serializable { |
|
|
this.messageLevel = type; |
|
|
this.messageLevel = type; |
|
|
this.info = info; |
|
|
this.info = info; |
|
|
this.stackInfo = stackInfo; |
|
|
this.stackInfo = stackInfo; |
|
|
|
|
|
setDefaultTitle(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public ZAppPromopt(MessageLevel type, String info) { |
|
|
public ZAppPromopt(MessageLevel type, String info) { |
|
|
this.messageLevel = type; |
|
|
this.messageLevel = type; |
|
|
this.info = info; |
|
|
this.info = info; |
|
|
|
|
|
setDefaultTitle(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|