From 8ad4f99e07fb2d4d5ad34aaf6ec9c593e1091417 Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期一, 27 五月 2024 10:21:28 +0800
Subject: [PATCH] 数据库验证码明示配置文件

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

diff --git a/config/config.go b/config/config.go
index 29c6c33..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 {

--
Gitblit v1.8.0