biz

package
v0.0.0-...-9139306 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewACLUsecase)

Functions

This section is empty.

Types

type ACLRepo

type ACLRepo interface {
	ListRoles(ctx context.Context, in *common.PagingRequest) (*common.PagingResponse, error)
	GetRole(ctx context.Context, o *Role) (*Role, error)
	CreateRole(ctx context.Context, o *Role) (*Role, error)
	UpdateRole(ctx context.Context, o *Role) (*Role, error)
	DeleteRoles(ctx context.Context, ids []string) error
}

type ACLUsecase

type ACLUsecase struct {
	// contains filtered or unexported fields
}

func NewACLUsecase

func NewACLUsecase(repo ACLRepo) *ACLUsecase

func (*ACLUsecase) CreateRole

func (ac *ACLUsecase) CreateRole(ctx context.Context, o *Role) (*Role, error)

func (*ACLUsecase) DeleteRoles

func (ac *ACLUsecase) DeleteRoles(ctx context.Context, ids []string) error

func (*ACLUsecase) GetRole

func (ac *ACLUsecase) GetRole(ctx context.Context, o *Role) (*Role, error)

func (*ACLUsecase) ListRoles

func (*ACLUsecase) UpdateRole

func (ac *ACLUsecase) UpdateRole(ctx context.Context, o *Role) (*Role, error)

type Role

type Role struct {
	usecase.BaseDO
	Name        *string
	Description *string
	IsSystem    bool
}

Jump to

Keyboard shortcuts

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