16 lines
418 B
Go
16 lines
418 B
Go
package system
|
|
|
|
import "context"
|
|
|
|
type PermissionRepo interface {
|
|
SelectedButtons(context.Context, uint, uint) ([]uint, error)
|
|
SetSelectedButtons(context.Context, uint, uint, []uint) error
|
|
CanRemoveButton(context.Context, string) (bool, error)
|
|
}
|
|
|
|
type PermissionUsecase struct{ PermissionRepo }
|
|
|
|
func NewPermissionUsecase(repo PermissionRepo) *PermissionUsecase {
|
|
return &PermissionUsecase{PermissionRepo: repo}
|
|
}
|