mirror of
https://github.com/gophish/gophish
synced 2024-11-14 16:27:23 +00:00
Created Campaigns struct
This commit is contained in:
parent
4ad8c3c468
commit
4272d5a12b
1 changed files with 20 additions and 1 deletions
|
@ -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 a new issue