notifications.go 582 B

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