| skipped 10 lines |
11 | 11 | | |
12 | 12 | | // Template models hold the attributes for an email template to be sent to targets |
13 | 13 | | type Template struct { |
14 | | - | Id int64 `json:"id" gorm:"column:id; primary_key:yes"` |
15 | | - | UserId int64 `json:"-" gorm:"column:user_id"` |
16 | | - | Name string `json:"name"` |
| 14 | + | Id int64 `json:"id" gorm:"column:id; primary_key:yes"` |
| 15 | + | UserId int64 `json:"-" gorm:"column:user_id"` |
| 16 | + | Name string `json:"name"` |
17 | 17 | | EnvelopeSender string `json:"envelope_sender"` |
18 | | - | Subject string `json:"subject"` |
19 | | - | Text string `json:"text"` |
20 | | - | HTML string `json:"html" gorm:"column:html"` |
21 | | - | ModifiedDate time.Time `json:"modified_date"` |
22 | | - | Attachments []Attachment `json:"attachments"` |
| 18 | + | Subject string `json:"subject"` |
| 19 | + | Text string `json:"text"` |
| 20 | + | HTML string `json:"html" gorm:"column:html"` |
| 21 | + | ModifiedDate time.Time `json:"modified_date"` |
| 22 | + | Attachments []Attachment `json:"attachments"` |
23 | 23 | | } |
24 | 24 | | |
25 | 25 | | // ErrTemplateNameNotSpecified is thrown when a template name is not specified |
| skipped 173 lines |