package config type Email struct { Sender string `mapstructure:"sender"` CustomReceiver string `mapstructure:"custom_receiver"` ResetPassword EmailConfig `mapstructure:"reset_password"` } type EmailConfig struct { Subject string `mapstructure:"subject"` OpeningWord string `mapstructure:"opening_word"` Link string `mapstructure:"link"` Notes string `mapstructure:"note"` ClosingWord string `mapstructure:"closing_word"` TemplateName string `mapstructure:"template_name"` TemplatePath string `mapstructure:"template_path"` } type EmailMemberRequestActionConfig struct { TemplateName string `mapstructure:"template_name"` TemplatePath string `mapstructure:"template_path"` Subject string `mapstructure:"subject"` Content string `mapstructure:"content"` } func (e *Email) GetSender() string { return e.Sender } func (e *Email) GetCustomReceiver() string { return e.CustomReceiver }