2015-06-05 14:15:38 +08:00
|
|
|
package models
|
|
|
|
|
2015-06-08 19:39:02 +08:00
|
|
|
import "errors"
|
|
|
|
|
|
|
|
var ErrInvalidEmailCode = errors.New("Invalid or expired email code")
|
|
|
|
|
2015-06-05 14:15:38 +08:00
|
|
|
type SendEmailCommand struct {
|
2015-06-08 22:51:25 +08:00
|
|
|
To []string
|
|
|
|
Template string
|
|
|
|
Data map[string]interface{}
|
|
|
|
Massive bool
|
|
|
|
Info string
|
2015-06-05 14:15:38 +08:00
|
|
|
}
|
|
|
|
|
2016-06-15 20:45:05 +08:00
|
|
|
type SendWebhook struct {
|
2016-06-16 14:15:48 +08:00
|
|
|
Url string
|
|
|
|
User string
|
|
|
|
Password string
|
|
|
|
Body string
|
2016-06-15 20:45:05 +08:00
|
|
|
}
|
|
|
|
|
2015-06-05 14:15:38 +08:00
|
|
|
type SendResetPasswordEmailCommand struct {
|
2015-06-05 17:08:19 +08:00
|
|
|
User *User
|
2015-06-05 14:15:38 +08:00
|
|
|
}
|
|
|
|
|
2015-06-08 19:39:02 +08:00
|
|
|
type ValidateResetPasswordCodeQuery struct {
|
|
|
|
Code string
|
|
|
|
Result *User
|
|
|
|
}
|