From beb552607f1cb7a8afe8a69608d99d5323dffc35 Mon Sep 17 00:00:00 2001 From: zhangyuxiang <1323804152@qq.com> Date: Tue, 17 Jun 2025 17:40:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=AF=BB=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/configStruct.go | 6 +++--- consumers/HBJCAS/config.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/configStruct.go b/config/configStruct.go index 0756601..c67d577 100644 --- a/config/configStruct.go +++ b/config/configStruct.go @@ -18,9 +18,9 @@ type MqttConfig struct { Topics []string `json:"topics" yaml:"topics"` } type KafkaConfig struct { - Brokers []string `json:"brokers"` - GroupId string `json:"groupId"` - Topics []string `json:"topics"` + Brokers []string `json:"brokers" yaml:"brokers"` + GroupId string `json:"groupId" yaml:"groupId"` + Topics []string `json:"topics" yaml:"topics"` } type EsConfig struct { diff --git a/consumers/HBJCAS/config.go b/consumers/HBJCAS/config.go index 6ca316c..f2b10ee 100644 --- a/consumers/HBJCAS/config.go +++ b/consumers/HBJCAS/config.go @@ -20,7 +20,7 @@ type ioConfig struct { } type In struct { Http config.HttpConfig `yaml:"http"` - Kafka config.KafkaConfig `json:"kafka"` + Kafka config.KafkaConfig `yaml:"kafka"` } type Out struct {