42 lines
1012 B
Go
42 lines
1012 B
Go
package communication
|
|
|
|
type ApiResponse struct {
|
|
ID string `json:"id"`
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
type ApiContentDto struct {
|
|
Subject string `json:"subject"`
|
|
Html string `json:"html"`
|
|
PlainText string `json:"plainText"`
|
|
}
|
|
type ApiRecipientDetailDto struct {
|
|
Address string `json:"address"`
|
|
DisplayName string `json:"displayName"`
|
|
}
|
|
|
|
type ApiRecipientDto struct {
|
|
To []ApiRecipientDetailDto `json:"to"`
|
|
CC []ApiRecipientDetailDto `json:"cc"`
|
|
BCC []ApiRecipientDetailDto `json:"bcc"`
|
|
}
|
|
|
|
type ApiRequest struct {
|
|
SenderAddress string `json:"senderAddress"`
|
|
Content ApiContentDto `json:"content"`
|
|
Recipients ApiRecipientDto `json:"recipients"`
|
|
}
|
|
|
|
type ApiErrorResponse struct {
|
|
Error struct {
|
|
AdditionalInfo []struct {
|
|
Info any `json:"info"`
|
|
Type string `json:"type"`
|
|
} `json:"additionalInfo"`
|
|
Code string `json:"code"`
|
|
Message string `json:"message"`
|
|
Target string `json:"target"`
|
|
Details any `json:"details"`
|
|
} `json:"error"`
|
|
}
|