feat: 落地聊天记录异步持久化基础设施
- 新增 chatlog 模块、AnalyticalDB 公共层与 common-mq Redis Streams 实现 - 建立 Redis 热态、MySQL 热数据、AnalyticalDB 历史查询与同步链路 - 收紧聊天记录幂等、摘要时序与持久化失败语义
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package tech.easyflow.chatlog.support;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.time.YearMonth;
|
||||
|
||||
public class ChatTableRouterTest {
|
||||
|
||||
private final ChatTableRouter router = new ChatTableRouter();
|
||||
|
||||
@Test
|
||||
public void shouldResolveSessionTable() {
|
||||
Assert.assertEquals("chat_session", router.resolveSessionTable());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shouldResolveMonthLogTable() {
|
||||
Assert.assertEquals("chat_log_202604", router.resolveLogTable(YearMonth.of(2026, 4)));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user