refactor: extract Destination type from EmailRequest for improved structure
All checks were successful
🚀 Publish Release Package / publish (push) Successful in 19s

This commit is contained in:
2025-06-25 11:48:19 -04:00
parent d1af60afb2
commit ac789c1cba

View File

@@ -18,13 +18,15 @@ type Message struct {
Subject Data `json:"Subject"`
}
type Destination struct {
ToAddresses Addresses `json:"ToAddresses"`
CcAddresses Addresses `json:"CcAddresses,omitempty"`
BccAddresses Addresses `json:"BccAddresses,omitempty"`
}
type EmailRequest struct {
Source string `json:"Source"`
Destination struct {
ToAddresses Addresses `json:"ToAddresses"`
CcAddresses Addresses `json:"CcAddresses"`
BccAddresses Addresses `json:"BccAddresses"`
} `json:"Destination"`
Destination Destination `json:"Destination"`
Message Message `json:"Message"`
ScheduledTime time.Time `json:"ScheduledTime,omitempty"`
Catch bool `json:"Catch,omitempty"`