notifications.go 603 B

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