Documentation
¶
Index ¶
- Constants
- func CheckPasswordHash(password, hashedPassword string) bool
- func GenerateSalt() string
- func HashPassword(password string) (string, error)
- type CampaignCustomer
- type Customer
- type DripCampaign
- type EmailLog
- type EmailRequest
- type EmailTemplate
- type ErrorResponse
- type LoginRequest
- type LoginUser
- type Model
- type Settings
- type Stage
- type Step
- type SuccessResponse
- type TokenResponse
- type User
Constants ¶
View Source
const AdminRole = "admin"
View Source
const UserRole = "user"
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func GenerateSalt ¶
func GenerateSalt() string
func HashPassword ¶
Types ¶
type CampaignCustomer ¶
type Customer ¶
type Customer struct {
Model
Email string `json:"email"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Phone string `json:"phone" gorm:"default:null"`
Company string `json:"company" gorm:"default:null"`
Address string `json:"address" gorm:"default:null"`
City string `json:"city" gorm:"default:null"`
State string `json:"state" gorm:"default:null"`
Country string `json:"country" gorm:"default:null"`
PostalCode string `json:"postal_code" gorm:"default:null"`
Notes string `json:"notes" gorm:"default:null"`
Tags string `json:"tags" gorm:"default:null"`
EmailVerified bool `json:"email_verified" gorm:"default:false"`
Subscribed bool `json:"subscribed" gorm:"default:false"`
LastContacted string `json:"last_contacted" gorm:"default:null"`
LeadSource string `json:"lead_source" gorm:"default:null"`
LeadStatus string `json:"lead_status" gorm:"default:null"`
CreatedBy uint `json:"created_by"`
AssignedTo uint `json:"assigned_to"`
}
type DripCampaign ¶
type EmailRequest ¶
type EmailTemplate ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
type LoginRequest ¶
type Step ¶
type Step struct {
Model
StageID uint `json:"stage_id"`
Name string `json:"name"`
Description string `json:"description"`
EmailTemplateID uint `json:"email_template_id"`
EmailTemplate *EmailTemplate `json:"email_template,omitempty" gorm:"foreignkey:EmailTemplateID"`
WaitTime int `json:"wait_time"`
}
type SuccessResponse ¶
type SuccessResponse struct {
Message string `json:"message"`
}
type TokenResponse ¶
type TokenResponse struct {
Token string `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.