Documentation ¶
Index ¶
- type CreateMenuReq
- type DeleteMenuReq
- type Endpoint
- type Handler
- func (h *Handler) CreateMenu(ctx *gin.Context, req CreateMenuReq) (ginx.Result, error)
- func (h *Handler) DeleteMenu(ctx *gin.Context, req DeleteMenuReq) (ginx.Result, error)
- func (h *Handler) ListMenuTree(ctx *gin.Context) (ginx.Result, error)
- func (h *Handler) PrivateRoutes(server *gin.Engine)
- func (h *Handler) UpdateMenu(ctx *gin.Context, req UpdateMenuReq) (ginx.Result, error)
- type Menu
- type Meta
- type UpdateMenuReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateMenuReq ¶
type CreateMenuReq struct { Pid int64 `json:"pid"` Path string `json:"path"` Name string `json:"name"` Component string `json:"component"` ComponentPath string `json:"component_path"` Redirect string `json:"redirect"` Sort int64 `json:"sort"` Type uint8 `json:"type"` Status uint8 `json:"status"` Meta Meta `json:"meta"` Endpoints []Endpoint `json:"endpoints"` }
type DeleteMenuReq ¶
type DeleteMenuReq struct {
Id int64 `json:"id"`
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) CreateMenu ¶
func (*Handler) DeleteMenu ¶
func (*Handler) ListMenuTree ¶
func (*Handler) PrivateRoutes ¶
func (*Handler) UpdateMenu ¶
UpdateMenu 修改菜单信息
type Menu ¶
type Menu struct { Id int64 `json:"id"` Pid int64 `json:"pid"` Name string `json:"name"` Path string `json:"path"` Redirect string `json:"redirect"` Sort int64 `json:"sort"` Component string `json:"component"` Status uint8 `json:"status"` Type uint8 `json:"type"` Meta Meta `json:"meta"` Endpoints []Endpoint `json:"endpoints"` Children []*Menu `json:"children"` }
func GetMenusTree ¶
type UpdateMenuReq ¶
type UpdateMenuReq struct { Id int64 `json:"id"` Pid int64 `json:"pid"` Name string `json:"name"` Path string `json:"path"` Component string `json:"component"` ComponentPath string `json:"component_path"` Redirect string `json:"redirect"` Sort int64 `json:"sort"` Type uint8 `json:"type"` Status uint8 `json:"status"` Meta Meta `json:"meta"` Endpoints []Endpoint `json:"endpoints"` }
Click to show internal directories.
Click to hide internal directories.