emails.go 374 B

12345678910111213141516171819202122
  1. package models
  2. import "errors"
  3. var ErrInvalidEmailCode = errors.New("Invalid or expired email code")
  4. type SendEmailCommand struct {
  5. To []string
  6. Template string
  7. Data map[string]interface{}
  8. Massive bool
  9. Info string
  10. }
  11. type SendResetPasswordEmailCommand struct {
  12. User *User
  13. }
  14. type ValidateResetPasswordCodeQuery struct {
  15. Code string
  16. Result *User
  17. }