menuaction

package
v0.0.0-...-d77c644 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MenuAction struct {
	ID        string
	MenuID    string
	Code      string
	Name      string
	Resources menuactionresource.MenuActionResources
}
type MenuActions []*MenuAction
func (a MenuActions) FillResources(mResources map[string]menuactionresource.MenuActionResources)
func (a MenuActions) ToMap() map[string]*MenuAction
func (a MenuActions) ToMenuIDMap() map[string]MenuActions

type QueryParam

type QueryParam struct {
	PaginationParam pagination.Param
	OrderFields     pagination.OrderFields
	MenuID          string
	IDs             []string
}

type Repository

type Repository interface {
	Query(ctx context.Context, params QueryParam) (MenuActions, *pagination.Pagination, error)
	Get(ctx context.Context, id string) (*MenuAction, error)
	Create(ctx context.Context, item *MenuAction) error
	Update(ctx context.Context, id string, item *MenuAction) error
	Delete(ctx context.Context, id string) error
	DeleteByMenuID(ctx context.Context, menuID string) error
}

Jump to

Keyboard shortcuts

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