From 16b34c939d6790fe6ebe61f8f0e85fe80ee52224 Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期三, 29 五月 2024 14:44:16 +0800
Subject: [PATCH] 修改准备数据流程,适应较大数据量的操作

---
 config/config.go |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/config/config.go b/config/config.go
index 29c6c33..728e51e 100644
--- a/config/config.go
+++ b/config/config.go
@@ -15,10 +15,12 @@
 }
 
 type database struct {
-	Driver string `mapstructure: "driver"`
-	Host   string `mapstructure: "host"`
-	Port   string `mapstructure: "port"`
-	Name   string `mapstructure: "name"`
+	Driver   string `mapstructure: "driver"`
+	Host     string `mapstructure: "host"`
+	Port     string `mapstructure: "port"`
+	Name     string `mapstructure: "name"`
+	Username string `mapstructure: "username"`
+	Password string `mapstructure: "password"`
 }
 
 type elastic struct {
@@ -30,6 +32,7 @@
 	TopHitsSize  int    `mapstructure: "topHitsSize"`
 	CameraSize   int    `mapstructure: "cameraSize"`
 	TimeInterval int    `mapstructure: "timeInterval"`
+	BatchSize    int    `mapstructure: "batchSize"`
 }
 
 type app struct {

--
Gitblit v1.8.0