feat(common): Record消息结构更新

新增info字段用于存一些公共字段,statement加入消息加密能力
This commit is contained in:
v-zhangjc9
2024-07-09 15:36:10 +08:00
parent ae6e4855e0
commit 6c9f43d310
11 changed files with 455 additions and 80 deletions

View File

@@ -3,6 +3,7 @@ package com.lanyuanxiaoyao.service.sync;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.lanyuanxiaoyao.service.common.entity.Record;
import com.lanyuanxiaoyao.service.common.utils.RecordHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -99,8 +100,7 @@ public class MessageParseTest {
" }\n" +
" }\n" +
"}";
ObjectMapper mapper = new ObjectMapper();
Record record = mapper.readValue(message, Record.class);
Record record = RecordHelper.parse(message);
logger.info("Record: {}", record);
}
}