refactor: update app instance structure to include both mailserver and logger

This commit is contained in:
2024-08-18 13:35:07 +07:00
parent 7df02c270b
commit d64a4a587e
23 changed files with 147 additions and 225 deletions

View File

@ -15,8 +15,8 @@ type Email interface {
Send()
}
func NewSmtpServer(Host string, Port int, User string, Password string) *SmtpServer {
return &SmtpServer{
func NewSmtpServer(Host string, Port int, User string, Password string) SmtpServer {
return SmtpServer{
Host: Host,
Port: Port,
User: User,