From ae889abd1da40405086482dfd13b0e41aabd929f Mon Sep 17 00:00:00 2001 From: KynixInHK Date: Tue, 6 Aug 2024 15:17:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86mongodb=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- am_mongo/mongo.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/am_mongo/mongo.go b/am_mongo/mongo.go index 690c45e..cc9e2ba 100644 --- a/am_mongo/mongo.go +++ b/am_mongo/mongo.go @@ -9,10 +9,10 @@ import ( ) type MongoDB struct { - Host string - Port string - Username string - Password string + Host string `json:"host"` + Port string `json:"port"` + Username string `json:"username"` + Password string `json:"password"` Client *mongo.Client DB *mongo.Database }