notifications.go 659 B

12345678910111213141516171819202122232425262728293031323334353637
  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. ContentType string
  23. }
  24. type SendResetPasswordEmailCommand struct {
  25. User *User
  26. }
  27. type ValidateResetPasswordCodeQuery struct {
  28. Code string
  29. Result *User
  30. }