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 service.IAuthService, permissionService service.IPermissionService, roleService service.IRoleService, userService service.IUserService, tr mw.ITransaction, tokenMiddleware middleware.ITokenMiddleware, permissionMiddleware middleware.IPermissionMiddleware, ) *Handler
func (*Handler) Init ¶
func (h *Handler) Init(api *gin.RouterGroup)
type IHandler ¶
type IHandler interface {
Init(api *gin.RouterGroup)
}
type PermissionHandler ¶ added in v2.0.4
type PermissionHandler struct {
// contains filtered or unexported fields
}
func NewPermissionHandlers ¶ added in v2.0.4
func NewPermissionHandlers( permissionService service.IPermissionService, ) *PermissionHandler
func (*PermissionHandler) Init ¶ added in v2.0.4
func (h *PermissionHandler) Init(api *gin.RouterGroup)
func (*PermissionHandler) List ¶ added in v2.0.4
func (h *PermissionHandler) List(c *gin.Context)
type RoleHandler ¶ added in v2.0.4
type RoleHandler struct {
// contains filtered or unexported fields
}
func NewRoleHandlers ¶ added in v2.0.4
func NewRoleHandlers( roleService service.IRoleService, ) *RoleHandler
func (*RoleHandler) Create ¶ added in v2.0.4
func (h *RoleHandler) Create(c *gin.Context)
func (*RoleHandler) Delete ¶ added in v2.0.4
func (h *RoleHandler) Delete(c *gin.Context)
func (*RoleHandler) GetById ¶ added in v2.0.4
func (h *RoleHandler) GetById(c *gin.Context)
func (*RoleHandler) Init ¶ added in v2.0.4
func (h *RoleHandler) Init(api *gin.RouterGroup)
func (*RoleHandler) List ¶ added in v2.0.4
func (h *RoleHandler) List(c *gin.Context)
func (*RoleHandler) Update ¶ added in v2.0.4
func (h *RoleHandler) Update(c *gin.Context)
type UserHandler ¶ added in v2.0.4
type UserHandler struct {
// contains filtered or unexported fields
}
func NewUserHandlers ¶ added in v2.0.4
func NewUserHandlers( userService service.IUserService, ) *UserHandler
func (*UserHandler) Create ¶ added in v2.0.4
func (h *UserHandler) Create(c *gin.Context)
func (*UserHandler) Delete ¶ added in v2.0.4
func (h *UserHandler) Delete(c *gin.Context)
func (*UserHandler) GetById ¶ added in v2.0.4
func (h *UserHandler) GetById(c *gin.Context)
func (*UserHandler) Init ¶ added in v2.0.4
func (h *UserHandler) Init(api *gin.RouterGroup)
func (*UserHandler) List ¶ added in v2.0.4
func (h *UserHandler) List(c *gin.Context)
func (*UserHandler) Update ¶ added in v2.0.4
func (h *UserHandler) Update(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.