notifications.go 633 B

123456789101112131415161718192021222324252627282930313233343536
  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. Subject string
  8. Data map[string]interface{}
  9. Info string
  10. EmbededFiles []string
  11. }
  12. type SendEmailCommandSync struct {
  13. SendEmailCommand
  14. }
  15. type SendWebhookSync struct {
  16. Url string
  17. User string
  18. Password string
  19. Body string
  20. HttpMethod string
  21. HttpHeader map[string]string
  22. }
  23. type SendResetPasswordEmailCommand struct {
  24. User *User
  25. }
  26. type ValidateResetPasswordCodeQuery struct {
  27. Code string
  28. Result *User
  29. }