From 6597287fc412ce914aba41fe571ed05817cf371c Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期一, 27 五月 2024 11:34:58 +0800
Subject: [PATCH] fix script

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

diff --git a/config/config.go b/config/config.go
index f6ab35f..721adbe 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 {
@@ -39,8 +41,11 @@
 }
 
 type api struct {
-	Host string `mapstructure: "host"`
-	Port string `mapstructure: "port"`
+	Host      string `mapstructure: "host"`
+	Port      string `mapstructure: "port"`
+	CsTimes   int    `mapstructure:"csTimes"`
+	CsHours   int    `mapstructure:"csHours"`
+	AInterval int    `mapstructure:"aInterval"`
 }
 
 var LogConf = &LogConfig{}

--
Gitblit v1.8.0