You've already forked email-api-client
refactor: extract Destination type from EmailRequest for improved structure
All checks were successful
🚀 Publish Release Package / publish (push) Successful in 19s
All checks were successful
🚀 Publish Release Package / publish (push) Successful in 19s
This commit is contained in:
@@ -18,16 +18,18 @@ 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"`
|
||||
Message Message `json:"Message"`
|
||||
ScheduledTime time.Time `json:"ScheduledTime,omitempty"`
|
||||
Catch bool `json:"Catch,omitempty"`
|
||||
Source string `json:"Source"`
|
||||
Destination Destination `json:"Destination"`
|
||||
Message Message `json:"Message"`
|
||||
ScheduledTime time.Time `json:"ScheduledTime,omitempty"`
|
||||
Catch bool `json:"Catch,omitempty"`
|
||||
}
|
||||
|
||||
type Email struct {
|
||||
|
||||
Reference in New Issue
Block a user