Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static class Update{
private Long postId;
private Long writerId;
private String status;
private Integer ImmediatePrice;
private Integer immediatePrice;
private Integer startedPrice;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public static <T> Map<String, Object> kafkaListenerConfig(String kafkaPort,Strin
configProps.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, JsonDeserializer.class);
configProps.put(JsonDeserializer.TRUSTED_PACKAGES, "*");
configProps.put(JsonDeserializer.VALUE_DEFAULT_TYPE, listenedClass);
configProps.put(JsonDeserializer.USE_TYPE_INFO_HEADERS, false);
return configProps;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ public class PostEvent {
@NoArgsConstructor(access = AccessLevel.PUBLIC)
public static class Status {
private Long postId;
private ProductStatus status;
private String status;
private Long writerId;
private Integer startedPrice;
private Integer ImmediatePrice;
private Integer immediatePrice;

public static Status from(Post post) {
return new Status(post.getId(), post.getProductStatus(), post.getWriterId(), post.getStartedPrice(), post.getImmediatePrice());
return new Status(post.getId(), post.getProductStatus().name(), post.getWriterId(), post.getStartedPrice(), post.getImmediatePrice());
}
}

Expand Down