Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MenuAction ¶
type MenuAction struct { ID string MenuID string Code string Name string Resources menuactionresource.MenuActionResources }
type MenuActions ¶
type MenuActions []*MenuAction
func (MenuActions) FillResources ¶
func (a MenuActions) FillResources(mResources map[string]menuactionresource.MenuActionResources)
func (MenuActions) ToMap ¶
func (a MenuActions) ToMap() map[string]*MenuAction
func (MenuActions) ToMenuIDMap ¶
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 }
Click to show internal directories.
Click to hide internal directories.