biz

package
v0.0.0-...-808d8e6 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 5 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is biz providers.

Functions

This section is empty.

Types

type ExampleRepo

type ExampleRepo interface {
	ListExample(ctx context.Context, page, pageSize int64, params map[string]interface{}) ([]*domain.Example, error)
	GetExampleCount(ctx context.Context, params map[string]interface{}) (int64, error)
	GetExample(ctx context.Context, params map[string]interface{}) (*domain.Example, error)
	CreateExample(ctx context.Context, example *domain.Example) (*domain.Example, error)
	UpdateExample(ctx context.Context, example *domain.Example) error
	DeleteExample(ctx context.Context, example *domain.Example) error
	RecoverExample(ctx context.Context, example *domain.Example) error
}

type ExampleUsecase

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

func NewExampleUsecase

func NewExampleUsecase(repo ExampleRepo, logger log.Logger) *ExampleUsecase

func (*ExampleUsecase) CreateExample

func (suc *ExampleUsecase) CreateExample(ctx context.Context, example *domain.Example) (*domain.Example, error)

func (*ExampleUsecase) DeleteExample

func (suc *ExampleUsecase) DeleteExample(ctx context.Context, example *domain.Example) error

func (*ExampleUsecase) GetExample

func (suc *ExampleUsecase) GetExample(ctx context.Context, example *domain.Example) (*domain.Example, error)

func (*ExampleUsecase) ListExample

func (suc *ExampleUsecase) ListExample(ctx context.Context, page, pageSize int64, params map[string]interface{}) ([]*domain.Example, int64, error)

func (*ExampleUsecase) RecoverExample

func (suc *ExampleUsecase) RecoverExample(ctx context.Context, example *domain.Example) error

func (*ExampleUsecase) UpdateExample

func (suc *ExampleUsecase) UpdateExample(ctx context.Context, example *domain.Example) error

Jump to

Keyboard shortcuts

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