Email Notification Model » History » Version 1
karnake ruengchaicharnkij, 04/09/2026 02:28 AM
| 1 | 1 | karnake ruengchaicharnkij | # Email Notification Model |
|---|---|---|---|
| 2 | |||
| 3 | package test |
||
| 4 | |||
| 5 | import ( |
||
| 6 | "html/template" |
||
| 7 | ) |
||
| 8 | |||
| 9 | // NotificationTableRow represents one row in the summary table. |
||
| 10 | type NotificationTableRow struct { |
||
| 11 | Label string |
||
| 12 | Value string |
||
| 13 | } |
||
| 14 | |||
| 15 | // NotificationTemplateData holds all variables used by notification.html. |
||
| 16 | type NotificationTemplateData struct { |
||
| 17 | Lang string |
||
| 18 | Subject string |
||
| 19 | HeaderTitle string |
||
| 20 | GreetingPrefix string |
||
| 21 | CustomerName string |
||
| 22 | Contents []template.HTML |
||
| 23 | TableRows []NotificationTableRow |
||
| 24 | WarningTitle string |
||
| 25 | WarningMessage string |
||
| 26 | ButtonText string |
||
| 27 | ActionURL string |
||
| 28 | Note string |
||
| 29 | FooterCompany string |
||
| 30 | FooterAddress string |
||
| 31 | FooterContact string |
||
| 32 | } |