menuactionresource

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MenuActionResource struct {
	ID       string
	ActionID string
	Method   string
	Path     string
}
type MenuActionResources []*MenuActionResource
func (a MenuActionResources) ToActionIDMap() map[string]MenuActionResources
func (a MenuActionResources) ToMenuActionIDMap() map[string]MenuActionResources

type QueryParam

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

type Repository

type Repository interface {
	Query(ctx context.Context, params QueryParam) (MenuActionResources, *pagination.Pagination, error)
	Get(ctx context.Context, id string) (*MenuActionResource, error)
	Create(ctx context.Context, item *MenuActionResource) error
	Update(ctx context.Context, id string, item *MenuActionResource) error
	Delete(ctx context.Context, id string) error
	DeleteByActionID(ctx context.Context, actionID 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