From 560bd4599b85054056e9998ae161ca6b4d059896 Mon Sep 17 00:00:00 2001 From: marsal Date: Fri, 10 Jul 2026 12:33:24 +0800 Subject: [PATCH] fix(channel): accept snake_case event request fields from channel-service --- .../sino/mci/channel/dto/ChannelAccountEventRequest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/mci-server/src/main/java/com/sino/mci/channel/dto/ChannelAccountEventRequest.java b/backend/mci-server/src/main/java/com/sino/mci/channel/dto/ChannelAccountEventRequest.java index 2fc1352..7b81f9b 100644 --- a/backend/mci-server/src/main/java/com/sino/mci/channel/dto/ChannelAccountEventRequest.java +++ b/backend/mci-server/src/main/java/com/sino/mci/channel/dto/ChannelAccountEventRequest.java @@ -1,5 +1,6 @@ package com.sino.mci.channel.dto; +import com.fasterxml.jackson.annotation.JsonProperty; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotNull; import lombok.Data; @@ -10,17 +11,22 @@ import java.util.Map; public class ChannelAccountEventRequest { @NotBlank + @JsonProperty("event_id") private String eventId; @NotBlank + @JsonProperty("event_type") private String eventType; @NotBlank + @JsonProperty("account_id") private String accountId; @NotBlank + @JsonProperty("tenant_code") private String tenantCode; + @JsonProperty("timestamp") private String timestamp; @NotNull