handler

package
v2.3.24 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 19 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 NewAuthHandlers

func NewAuthHandlers(
	authService service.IAuthService,
	tr mw.ITransaction,
	tokenMiddleware middleware.ITokenMiddleware,
) *AuthHandler

func (*AuthHandler) Init

func (h *AuthHandler) Init(api *gin.RouterGroup)

type Handler

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

func NewHandlers

func NewHandlers(
	authService service2.IAuthService,
	permissionService service2.IPermissionService,
	roleService service2.IRoleService,
	userService service2.IUserService,
	settingService service2.ISettingService,
	sessionService service2.ISessionService,
	tr mw.ITransaction,
	tokenMiddleware middleware2.ITokenMiddleware,
	permissionMiddleware middleware2.IPermissionMiddleware,
) *Handler

func (*Handler) Init

func (h *Handler) Init(api *gin.RouterGroup)

type IHandler

type IHandler interface {
	Init(api *gin.RouterGroup)
}

type PermissionHandler

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

func NewPermissionHandlers

func NewPermissionHandlers(
	permissionService service.IPermissionService,

) *PermissionHandler

func (*PermissionHandler) Init

func (h *PermissionHandler) Init(api *gin.RouterGroup)

func (*PermissionHandler) List

func (h *PermissionHandler) List(c *gin.Context)

type RoleHandler

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

func NewRoleHandlers

func NewRoleHandlers(
	roleService service.IRoleService,
	tr mw.ITransaction,
) *RoleHandler

func (*RoleHandler) Create

func (h *RoleHandler) Create(c *gin.Context)

func (*RoleHandler) Delete

func (h *RoleHandler) Delete(c *gin.Context)

func (*RoleHandler) GetById

func (h *RoleHandler) GetById(c *gin.Context)

func (*RoleHandler) Init

func (h *RoleHandler) Init(api *gin.RouterGroup)

func (*RoleHandler) List

func (h *RoleHandler) List(c *gin.Context)

func (*RoleHandler) Update

func (h *RoleHandler) Update(c *gin.Context)

type SessionHandler added in v2.3.7

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

func NewSessionHandlers added in v2.3.7

func NewSessionHandlers(
	sessionService service.ISessionService,
	tr mw.ITransaction,
) *SessionHandler

func (*SessionHandler) Init added in v2.3.7

func (h *SessionHandler) Init(api *gin.RouterGroup)

type SettingHandler

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

func NewSettingHandlers

func NewSettingHandlers(
	settingService service.ISettingService,
	tr mw.ITransaction,
) *SettingHandler

func (*SettingHandler) Get

func (h *SettingHandler) Get(c *gin.Context)

func (*SettingHandler) Init

func (h *SettingHandler) Init(api *gin.RouterGroup)

func (*SettingHandler) Update

func (h *SettingHandler) Update(c *gin.Context)

type UserHandler

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

func NewUserHandlers

func NewUserHandlers(
	userService service.IUserService,
	tr mw.ITransaction,
) *UserHandler

func (*UserHandler) Create

func (h *UserHandler) Create(c *gin.Context)

func (*UserHandler) Delete

func (h *UserHandler) Delete(c *gin.Context)

func (*UserHandler) GetById

func (h *UserHandler) GetById(c *gin.Context)

func (*UserHandler) Init

func (h *UserHandler) Init(api *gin.RouterGroup)

func (*UserHandler) List

func (h *UserHandler) List(c *gin.Context)

func (*UserHandler) Update

func (h *UserHandler) Update(c *gin.Context)

Jump to

Keyboard shortcuts

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