emails.go 374 Bytes
Newer Older
1 2
package models

3 4 5 6
import "errors"

var ErrInvalidEmailCode = errors.New("Invalid or expired email code")

7
type SendEmailCommand struct {
8 9 10 11 12
	To       []string
	Template string
	Data     map[string]interface{}
	Massive  bool
	Info     string
13 14 15
}

type SendResetPasswordEmailCommand struct {
16
	User *User
17 18
}

19 20 21 22
type ValidateResetPasswordCodeQuery struct {
	Code   string
	Result *User
}