Created Campaigns struct

pull/24/head
Jordan 2014-01-12 21:36:26 -06:00
parent 4ad8c3c468
commit 4272d5a12b
1 changed files with 20 additions and 1 deletions

View File

@ -1,6 +1,14 @@
package models package models
// SMTPServer is used to provide a default SMTP server preference. import (
"net/mail"
// SMTPServer is used to provide a default SMTP server preference.
"time"
"github.com/jordan-wright/email"
)
type SMTPServer struct { type SMTPServer struct {
Host string `json:"host"` Host string `json:"host"`
User string `json:"user"` User string `json:"user"`
@ -27,3 +35,14 @@ type Flash struct {
Type string Type string
Message string Message string
} }
//Campaign is a struct representing a created campaign
type Campaign struct {
Id int `json:"id"`
Name string `json:"name"`
CreatedDate time.Time `json:"created_date"`
CompletedDate time.Time `json:"completed_date"`
Targets []mail.Address `json:"targets"`
Template email.Email `json:"template"`
Status string `json:"status"`
}