From 678c8ab8eb327b4dbd30495a60d9c5aca1596cc0 Mon Sep 17 00:00:00 2001 From: Hanserwei <2628273921@qq.com> Date: Mon, 3 Nov 2025 14:22:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(search):=20=E5=AE=9E=E7=8E=B0=20Canal=20?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=90=8C=E6=AD=A5=E5=88=B0=20Elasticsearch?= =?UTF-8?q?=20=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 Elasticsearch 客户端依赖及配置 - 实现 Canal 数据监听与解析逻辑 - 新增笔记索引同步与删除处理 - 添加 MyBatis Mapper 扫描与数据源配置 - 定义笔记状态与可见性枚举类 - 配置 MyBatis XML 映射文件路径 --- .idea/MyBatisCodeHelperDatasource.xml | 3 +- han-note-search/pom.xml | 14 +- .../search/HannoteSearchApplication.java | 2 + .../hannote/search/canal/CanalSchedule.java | 193 ++++++++++++++---- .../search/domain/mapper/SelectMapper.java | 19 ++ .../hannote/search/enums/NoteStatusEnum.java | 18 ++ .../hannote/search/enums/NoteVisibleEnum.java | 15 ++ .../main/resources/mapperxml/SelectMapper.xml | 28 +++ 8 files changed, 247 insertions(+), 45 deletions(-) create mode 100644 han-note-search/src/main/java/com/hanserwei/hannote/search/domain/mapper/SelectMapper.java create mode 100644 han-note-search/src/main/java/com/hanserwei/hannote/search/enums/NoteStatusEnum.java create mode 100644 han-note-search/src/main/java/com/hanserwei/hannote/search/enums/NoteVisibleEnum.java create mode 100644 han-note-search/src/main/resources/mapperxml/SelectMapper.xml diff --git a/.idea/MyBatisCodeHelperDatasource.xml b/.idea/MyBatisCodeHelperDatasource.xml index 8d1e3bb..ed5a7b9 100644 --- a/.idea/MyBatisCodeHelperDatasource.xml +++ b/.idea/MyBatisCodeHelperDatasource.xml @@ -20,11 +20,12 @@