menu

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToMenuInfo

func ConvertToMenuInfo(menus []*core.MenuInfo) []types.MenuInfo

Types

type DeleteMenuLogic

type DeleteMenuLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteMenuLogic

func NewDeleteMenuLogic(r *http.Request, svcCtx *svc.ServiceContext) *DeleteMenuLogic

删除菜单

func (*DeleteMenuLogic) DeleteMenu

func (l *DeleteMenuLogic) DeleteMenu(req *types.DeleteMenuRequest) (resp *types.BaseResponse, err error)

type GetAllMenusByRoleLogic

type GetAllMenusByRoleLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetAllMenusByRoleLogic

func NewGetAllMenusByRoleLogic(r *http.Request, svcCtx *svc.ServiceContext) *GetAllMenusByRoleLogic

获取用户角色当前所有菜单

func (*GetAllMenusByRoleLogic) GetAllMenusByRole

func (l *GetAllMenusByRoleLogic) GetAllMenusByRole() (resp *types.MenuListResponse, err error)

type GetAllMenusLogic

type GetAllMenusLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetAllMenusLogic

func NewGetAllMenusLogic(r *http.Request, svcCtx *svc.ServiceContext) *GetAllMenusLogic

获取所有菜单

func (*GetAllMenusLogic) GetAllMenus

func (l *GetAllMenusLogic) GetAllMenus() (resp *types.MenuListResponse, err error)

type UpdateMenuLogic

type UpdateMenuLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateMenuLogic

func NewUpdateMenuLogic(r *http.Request, svcCtx *svc.ServiceContext) *UpdateMenuLogic

更新菜单

func (*UpdateMenuLogic) UpdateMenu

func (l *UpdateMenuLogic) UpdateMenu(req *types.MenuInfo) (resp *types.BaseResponse, err error)

Jump to

Keyboard shortcuts

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