notifications.go 471 B

1234567891011121314151617181920212223242526272829
  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 SendWebhook struct {
  12. Url string
  13. User string
  14. Password string
  15. Body string
  16. }
  17. type SendResetPasswordEmailCommand struct {
  18. User *User
  19. }
  20. type ValidateResetPasswordCodeQuery struct {
  21. Code string
  22. Result *User
  23. }