role

package
v0.0.0-...-ecc908a Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interactor

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

func New

func New(
	cfg *configs.Config,
	trc contract.Tracer,
	vld Validator,
	repository Repository,
) *Interactor

func (*Interactor) Create

func (*Interactor) DeleteAll

func (*Interactor) DeleteByID

func (*Interactor) GetAll

func (*Interactor) GetByID

func (*Interactor) Update

type Repository

type Repository interface {
	Create(ctx context.Context, r entity.Role) (entity.Role, error)
	GetByID(ctx context.Context, id uint64) (entity.Role, error)
	GetAll(
		ctx context.Context,
		filter dto.FilterRequest,
		pagination dto.PaginationRequest,
		sort dto.SortRequest,
		searchParams *dto.QuerySearch,
	) ([]entity.Role, uint, error)
	Update(ctx context.Context, r entity.Role) error
	DeleteByID(ctx context.Context, id uint64) error
	DeleteAll(ctx context.Context) error
}

type Validator

type Validator interface {
}

Jump to

Keyboard shortcuts

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