Documentation ¶
Index ¶
- type AddPermissionForRoleReq
- type CreateRoleReq
- type DeleteRoleReq
- type Handler
- func (h *Handler) CreateRole(ctx *gin.Context, req CreateRoleReq) (ginx.Result, error)
- func (h *Handler) DeleteMenu(ctx *gin.Context, req DeleteRoleReq) (ginx.Result, error)
- func (h *Handler) FindUserDoesNotHaveRoles(ctx *gin.Context, req UserRole) (ginx.Result, error)
- func (h *Handler) FindUserHaveRoles(ctx *gin.Context, req UserRole) (ginx.Result, error)
- func (h *Handler) ListRole(ctx *gin.Context, req Page) (ginx.Result, error)
- func (h *Handler) PrivateRoutes(server *gin.Engine)
- func (h *Handler) UpdateRole(ctx *gin.Context, req UpdateRoleReq) (ginx.Result, error)
- type Page
- type RetrieveRoles
- type RetrieveUserDoesNotHaveRoles
- type RetrieveUserHaveRoles
- type Role
- type UpdateRoleReq
- type UserRole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddPermissionForRoleReq ¶
type CreateRoleReq ¶
type DeleteRoleReq ¶
type DeleteRoleReq struct {
Id int64 `json:"id"`
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) CreateRole ¶
func (*Handler) DeleteMenu ¶
func (*Handler) FindUserDoesNotHaveRoles ¶
func (*Handler) FindUserHaveRoles ¶
func (*Handler) PrivateRoutes ¶
func (*Handler) UpdateRole ¶
type RetrieveRoles ¶
type RetrieveUserHaveRoles ¶
type RetrieveUserHaveRoles struct {
Roles []Role `json:"roles"`
}
type UpdateRoleReq ¶
Click to show internal directories.
Click to hide internal directories.