From be9877179f06b641c9d3c00d963c2df78151f9ff Mon Sep 17 00:00:00 2001 From: ZackYoung Date: Fri, 6 Dec 2024 20:49:56 +0800 Subject: [PATCH] [BugFix] [Alert]Fix alert serializable (#4023) Co-authored-by: zackyoungh --- .../java/org/dinky/alert/dingtalk/params/DingTalkParams.java | 4 +--- .../main/java/org/dinky/alert/email/params/EmailParams.java | 4 +--- .../main/java/org/dinky/alert/feishu/params/FeiShuParams.java | 4 +--- .../src/main/java/org/dinky/alert/http/params/HttpParams.java | 4 +--- .../main/java/org/dinky/alert/wechat/params/WechatParams.java | 4 +--- 5 files changed, 5 insertions(+), 15 deletions(-) diff --git a/dinky-alert/dinky-alert-dingtalk/src/main/java/org/dinky/alert/dingtalk/params/DingTalkParams.java b/dinky-alert/dinky-alert-dingtalk/src/main/java/org/dinky/alert/dingtalk/params/DingTalkParams.java index 610321e330..87a884a39d 100644 --- a/dinky-alert/dinky-alert-dingtalk/src/main/java/org/dinky/alert/dingtalk/params/DingTalkParams.java +++ b/dinky-alert/dinky-alert-dingtalk/src/main/java/org/dinky/alert/dingtalk/params/DingTalkParams.java @@ -22,15 +22,13 @@ import java.util.ArrayList; import java.util.List; -import com.fasterxml.jackson.annotation.JsonCreator; - import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor -@AllArgsConstructor(onConstructor = @__(@JsonCreator)) +@AllArgsConstructor public class DingTalkParams { private String webhook = ""; diff --git a/dinky-alert/dinky-alert-email/src/main/java/org/dinky/alert/email/params/EmailParams.java b/dinky-alert/dinky-alert-email/src/main/java/org/dinky/alert/email/params/EmailParams.java index 723a6c8fd4..d2dc63e333 100644 --- a/dinky-alert/dinky-alert-email/src/main/java/org/dinky/alert/email/params/EmailParams.java +++ b/dinky-alert/dinky-alert-email/src/main/java/org/dinky/alert/email/params/EmailParams.java @@ -22,15 +22,13 @@ import java.util.ArrayList; import java.util.List; -import com.fasterxml.jackson.annotation.JsonCreator; - import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor -@AllArgsConstructor(onConstructor = @__(@JsonCreator)) +@AllArgsConstructor public class EmailParams { private List receivers = new ArrayList<>(); diff --git a/dinky-alert/dinky-alert-feishu/src/main/java/org/dinky/alert/feishu/params/FeiShuParams.java b/dinky-alert/dinky-alert-feishu/src/main/java/org/dinky/alert/feishu/params/FeiShuParams.java index 23f0ef91ee..4c7af8048d 100644 --- a/dinky-alert/dinky-alert-feishu/src/main/java/org/dinky/alert/feishu/params/FeiShuParams.java +++ b/dinky-alert/dinky-alert-feishu/src/main/java/org/dinky/alert/feishu/params/FeiShuParams.java @@ -22,14 +22,12 @@ import java.util.ArrayList; import java.util.List; -import com.fasterxml.jackson.annotation.JsonCreator; - import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data -@NoArgsConstructor(onConstructor = @__(@JsonCreator)) +@NoArgsConstructor @AllArgsConstructor public class FeiShuParams { diff --git a/dinky-alert/dinky-alert-http/src/main/java/org/dinky/alert/http/params/HttpParams.java b/dinky-alert/dinky-alert-http/src/main/java/org/dinky/alert/http/params/HttpParams.java index dfa19d825f..29130260ed 100644 --- a/dinky-alert/dinky-alert-http/src/main/java/org/dinky/alert/http/params/HttpParams.java +++ b/dinky-alert/dinky-alert-http/src/main/java/org/dinky/alert/http/params/HttpParams.java @@ -23,14 +23,12 @@ import java.util.List; -import com.fasterxml.jackson.annotation.JsonCreator; - import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data -@NoArgsConstructor(onConstructor = @__(@JsonCreator)) +@NoArgsConstructor @AllArgsConstructor public class HttpParams { diff --git a/dinky-alert/dinky-alert-wechat/src/main/java/org/dinky/alert/wechat/params/WechatParams.java b/dinky-alert/dinky-alert-wechat/src/main/java/org/dinky/alert/wechat/params/WechatParams.java index ead608b8fa..c46ded152c 100644 --- a/dinky-alert/dinky-alert-wechat/src/main/java/org/dinky/alert/wechat/params/WechatParams.java +++ b/dinky-alert/dinky-alert-wechat/src/main/java/org/dinky/alert/wechat/params/WechatParams.java @@ -22,14 +22,12 @@ import java.util.ArrayList; import java.util.List; -import com.fasterxml.jackson.annotation.JsonCreator; - import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data -@NoArgsConstructor(onConstructor = @__(@JsonCreator)) +@NoArgsConstructor @AllArgsConstructor public class WechatParams {