mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 19:30:36 -06:00
37 lines
633 B
Go
37 lines
633 B
Go
package models
|
|
|
|
import "errors"
|
|
|
|
var ErrInvalidEmailCode = errors.New("Invalid or expired email code")
|
|
|
|
type SendEmailCommand struct {
|
|
To []string
|
|
Template string
|
|
Subject string
|
|
Data map[string]interface{}
|
|
Info string
|
|
EmbededFiles []string
|
|
}
|
|
|
|
type SendEmailCommandSync struct {
|
|
SendEmailCommand
|
|
}
|
|
|
|
type SendWebhookSync struct {
|
|
Url string
|
|
User string
|
|
Password string
|
|
Body string
|
|
HttpMethod string
|
|
HttpHeader map[string]string
|
|
}
|
|
|
|
type SendResetPasswordEmailCommand struct {
|
|
User *User
|
|
}
|
|
|
|
type ValidateResetPasswordCodeQuery struct {
|
|
Code string
|
|
Result *User
|
|
}
|