Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCodeExpired = errs.NewI18nError("email.code.expired").FallBack("email code exceeded") ErrSendFailed = errs.NewI18nError("email.send.failed").FallBack("email send failed") )
Functions ¶
This section is empty.
Types ¶
type SendCodeEmailOption ¶
type SendCodeEmailOption struct { // valid email format Email string `json:"email" uri:"email" form:"email" label:"field.email" example:"abc@example.com"` }
func (SendCodeEmailOption) Validate ¶
func (e SendCodeEmailOption) Validate(lang string) error
Click to show internal directories.
Click to hide internal directories.