From 765998bd977f1de4d05f11910157426e2d08abe5 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sat, 11 Oct 2025 11:24:42 +0800 Subject: [PATCH] =?UTF-8?q?docs(integration):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=E4=BB=A3=E7=A0=81=E5=B9=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=AF=B4=E6=98=8E-=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E9=9B=86=E6=88=90=E6=B5=8B=E8=AF=95=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E9=BB=98=E8=AE=A4=E9=85=8D=E7=BD=AE=E5=90=AF=E7=94=A8?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=20-=20=E7=A7=BB=E9=99=A4=E4=BA=86=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E9=9B=86=E6=88=90=E7=BB=84=E4=BB=B6=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=E5=BC=95=E7=94=A8=20-=20=E6=9B=B4=E6=96=B0ZT?= =?UTF-8?q?-Message=E9=9B=86=E6=88=90=E6=A6=82=E8=BF=B0=EF=BC=8C=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E5=AF=B9=E6=97=A7=E6=96=87=E6=A1=A3=E7=9A=84=E5=BC=95?= =?UTF-8?q?=E7=94=A8=20-=20=E7=AE=80=E5=8C=96=E7=9B=AE=E5=BD=95=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E5=B1=95=E7=A4=BA=EF=BC=8C=E7=A7=BB=E9=99=A4example?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=20-=20=E6=B8=85=E7=90=86=E5=86=97=E4=BD=99?= =?UTF-8?q?=E7=9A=84=E9=85=8D=E7=BD=AE=E9=94=AE=E5=80=BC=E8=AF=B4=E6=98=8E?= =?UTF-8?q?-=20=E7=BB=9F=E4=B8=80=E5=88=A0=E9=99=A4=E5=90=84=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E4=B8=8B=E7=9A=84example=E7=9B=AE=E5=BD=95=E5=BC=95?= =?UTF-8?q?=E7=94=A8=20-=20=E4=BC=98=E5=8C=96=E6=96=87=E6=A1=A3=E7=BB=93?= =?UTF-8?q?=E6=9E=84=EF=BC=8C=E6=8F=90=E9=AB=98=E5=8F=AF=E8=AF=BB=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ycwl/basic/integration/CLAUDE.md | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/ycwl/basic/integration/CLAUDE.md b/src/main/java/com/ycwl/basic/integration/CLAUDE.md index d13092b2..82bd24aa 100644 --- a/src/main/java/com/ycwl/basic/integration/CLAUDE.md +++ b/src/main/java/com/ycwl/basic/integration/CLAUDE.md @@ -34,8 +34,7 @@ service/ ├── client/ # Feign clients for HTTP calls ├── config/ # Service-specific configuration ├── dto/ # Data transfer objects -├── service/ # Service layer with business logic -└── example/ # Usage examples +└── service/ # Service layer with business logic ``` ## Integration Fallback Mechanism @@ -792,13 +791,6 @@ mvn test -Dtest=DefaultConfigIntegrationServiceTest # Run all device integration tests (including default configs) mvn test -Dtest="com.ycwl.basic.integration.device.*Test" - -# Enable example runner in application-dev.yml -integration: - device: - example: - default-config: - enabled: true ``` ### Common Configuration Keys @@ -820,8 +812,7 @@ com.ycwl.basic.integration.{service-name}/ ├── client/ ├── config/ ├── dto/ -├── service/ -└── example/ +└── service/ ``` ### 2. Add Configuration Properties @@ -1171,7 +1162,7 @@ fallbackService.clearAllFallbackCache("zt-render-worker"); ## ZT-Message Integration (Kafka Producer) ### Overview -The zt-message microservice accepts messages via Kafka on topic `zt-message`. This integration provides a simple producer service to publish notification messages as per docs/kafka-java-producer.md. +The zt-message microservice accepts messages via Kafka on topic `zt-message`. This integration provides a simple producer service to publish notification messages. - Topic: `zt-message` - Key: Use `channelId` for partitioning stability @@ -1180,7 +1171,6 @@ The zt-message microservice accepts messages via Kafka on topic `zt-message`. Th ### Components - `com.ycwl.basic.integration.message.dto.ZtMessage`: DTO for message body - `com.ycwl.basic.integration.message.service.ZtMessageProducerService`: Producer service using Spring Kafka -- Example: `com.ycwl.basic.integration.message.example.ZtMessageProducerExample` ### Configuration ```yaml