Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MenuActionResource ¶
type MenuActionResources ¶
type MenuActionResources []*MenuActionResource
func (MenuActionResources) ToActionIDMap ¶
func (a MenuActionResources) ToActionIDMap() map[string]MenuActionResources
func (MenuActionResources) ToMap ¶
func (a MenuActionResources) ToMap() map[string]*MenuActionResource
func (MenuActionResources) ToMenuActionIDMap ¶
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 }
Click to show internal directories.
Click to hide internal directories.