mirror of https://github.com/gophish/gophish
Created Campaigns struct
parent
4ad8c3c468
commit
4272d5a12b
|
@ -1,6 +1,14 @@
|
|||
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 {
|
||||
Host string `json:"host"`
|
||||
User string `json:"user"`
|
||||
|
@ -27,3 +35,14 @@ type Flash struct {
|
|||
Type 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"`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue