usecase

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package usecase account implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HistoryUsecase

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

RoleUsecase provides bussiness logic for account access

func NewUsecase

func NewUsecase(repo historylog.Repository) *HistoryUsecase

NewUsecase object controller

func (*HistoryUsecase) Count

func (a *HistoryUsecase) Count(ctx context.Context, filter *historylog.Filter) (int64, error)

Count of roles by filter

func (*HistoryUsecase) FetchList

func (a *HistoryUsecase) FetchList(ctx context.Context, filter *historylog.Filter, order *historylog.Order, pagination *repository.Pagination) ([]*model.HistoryAction, error)

FetchList of roles by filter

Jump to

Keyboard shortcuts

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