From d2c7fc3bcfc1e5528d70b58869039af9caf9ad1b Mon Sep 17 00:00:00 2001 From: KynixInHK Date: Mon, 8 Jul 2024 17:58:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86EmailConnection?= =?UTF-8?q?=E7=B5=90=E6=A7=8B=E9=AB=94=E7=82=BAjson=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=AB=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- am_smtp/smtp.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/am_smtp/smtp.go b/am_smtp/smtp.go index c50c0b7..28924a8 100644 --- a/am_smtp/smtp.go +++ b/am_smtp/smtp.go @@ -8,10 +8,10 @@ import ( // EmailConnection结构体 type EmailConnection struct { - Server string // smtp服务器地址 - Port int // smtp服务器端口 - Username string // smtp登录名 - Password string // smtp密码,可以是授权码 + Server string `json:"server"` // smtp服务器地址 + Port int `json:"port"` // smtp服务器端口 + Username string `json:"user-name"` // smtp登录名 + Password string `json:"password"` // smtp密码,可以是授权码 } /*