Documentation ¶
Index ¶
Constants ¶
View Source
const ( Ok int = iota Fail )
Variables ¶
View Source
var ( GetUserCtx = struct{}{} TokenCtx = struct{}{} )
Functions ¶
This section is empty.
Types ¶
type GetUserFunc ¶
type LoginRequest ¶
type Option ¶
type Option func(server *Server)
func WithConfigReloader ¶
func WithEmailSender ¶
func WithSmsSender ¶
func WithUploader ¶
type RegisterRequest ¶
type RegisterRequest struct { Email string `json:"email"` Mobile string `json:"mobile"` Code string `json:"code"` Password string `json:"password"` Nickname string `json:"nickname"` Avatar string `json:"avatar"` }
RegisterRequest is the params to register
type SendEmailVerifyCodeRequest ¶
type SendEmailVerifyCodeRequest struct {
Email string `json:"email"`
}
type SendSmsRequest ¶
type SendSmsRequest struct {
Mobile string `json:"mobile"`
}
SendSmsRequest send sms request.
type SmsInfo ¶
type SmsInfo struct { *model.VerifyCode Content string }
type SuccessMsg ¶
Click to show internal directories.
Click to hide internal directories.