handlers

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

type AuthHandler struct {
	// contains filtered or unexported fields
}

func NewAuthHandler

func NewAuthHandler(authService *services.AuthService) *AuthHandler

func (*AuthHandler) ChangePassword

func (h *AuthHandler) ChangePassword(c *gin.Context)

ChangePassword 修改密码

func (*AuthHandler) Login

func (h *AuthHandler) Login(c *gin.Context)

Login 用户登录

type IPHandler

type IPHandler struct {
	// contains filtered or unexported fields
}

func NewIPHandler

func NewIPHandler(ipService *services.IPService) *IPHandler

func (*IPHandler) CreateAllowedIP

func (h *IPHandler) CreateAllowedIP(c *gin.Context)

CreateAllowedIP 创建允许的IP

func (*IPHandler) DeleteAllowedIP

func (h *IPHandler) DeleteAllowedIP(c *gin.Context)

DeleteAllowedIP 删除允许的IP

func (*IPHandler) GetAllowedIPByIP

func (h *IPHandler) GetAllowedIPByIP(c *gin.Context)

GetAllowedIPByIP 根据IP获取配置

func (*IPHandler) GetAllowedIPs

func (h *IPHandler) GetAllowedIPs(c *gin.Context)

GetAllowedIPs 获取允许的IP列表

func (*IPHandler) UpdateAllowedIP

func (h *IPHandler) UpdateAllowedIP(c *gin.Context)

UpdateAllowedIP 更新允许的IP

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL