Documentation ¶
Index ¶
- Variables
- type AdminHandel
- type Handel
- type UserHandel
- func (h *UserHandel) ChangeName() http.HandlerFunc
- func (h *UserHandel) ChangePasswd() http.HandlerFunc
- func (h *UserHandel) ForgotPassword() http.HandlerFunc
- func (h *UserHandel) Login() http.HandlerFunc
- func (h *UserHandel) NeedEnableEmail(handle http.Handler) http.Handler
- func (h *UserHandel) PutTexture() http.HandlerFunc
- func (h *UserHandel) Reg() http.HandlerFunc
- func (h *UserHandel) SendForgotEmail() http.HandlerFunc
- func (h *UserHandel) SendRegEmail() http.HandlerFunc
- func (h *UserHandel) UserInfo() http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotAllowDomain = errors.New("不在允许域名列表内")
View Source
var HandelSet = wire.NewSet(NewUserHandel, NewAdminHandel, NewHandel)
Functions ¶
This section is empty.
Types ¶
type AdminHandel ¶ added in v0.0.3
type AdminHandel struct {
// contains filtered or unexported fields
}
func NewAdminHandel ¶ added in v0.0.3
func NewAdminHandel(handleError *handelerror.HandleError, adminService *service.AdminService, validate *validator.Validate) *AdminHandel
func (*AdminHandel) EditUser ¶ added in v0.0.3
func (h *AdminHandel) EditUser() http.HandlerFunc
func (*AdminHandel) ListUser ¶ added in v0.0.3
func (h *AdminHandel) ListUser() http.HandlerFunc
type Handel ¶
type Handel struct {
// contains filtered or unexported fields
}
func NewHandel ¶
func NewHandel(webService *service.WebService) *Handel
func (*Handel) GetConfig ¶
func (h *Handel) GetConfig() http.HandlerFunc
type UserHandel ¶ added in v0.0.3
type UserHandel struct {
// contains filtered or unexported fields
}
func NewUserHandel ¶ added in v0.0.3
func NewUserHandel(handleError *handelerror.HandleError, validate *validator.Validate, userService *service.UserService, logger *slog.Logger, textureService *service.TextureService, config config.Config) *UserHandel
func (*UserHandel) ChangeName ¶ added in v0.0.3
func (h *UserHandel) ChangeName() http.HandlerFunc
func (*UserHandel) ChangePasswd ¶ added in v0.0.3
func (h *UserHandel) ChangePasswd() http.HandlerFunc
func (*UserHandel) ForgotPassword ¶ added in v0.0.3
func (h *UserHandel) ForgotPassword() http.HandlerFunc
func (*UserHandel) Login ¶ added in v0.0.3
func (h *UserHandel) Login() http.HandlerFunc
func (*UserHandel) NeedEnableEmail ¶ added in v0.0.3
func (h *UserHandel) NeedEnableEmail(handle http.Handler) http.Handler
func (*UserHandel) PutTexture ¶ added in v0.0.3
func (h *UserHandel) PutTexture() http.HandlerFunc
func (*UserHandel) Reg ¶ added in v0.0.3
func (h *UserHandel) Reg() http.HandlerFunc
func (*UserHandel) SendForgotEmail ¶ added in v0.0.3
func (h *UserHandel) SendForgotEmail() http.HandlerFunc
func (*UserHandel) SendRegEmail ¶ added in v0.0.3
func (h *UserHandel) SendRegEmail() http.HandlerFunc
func (*UserHandel) UserInfo ¶ added in v0.0.3
func (h *UserHandel) UserInfo() http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.