biz

package
v0.0.0-...-d49c957 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDictSystemError = errors.InternalServer(v1.ErrorReason_DICT_SYSTEM_ERROR.String(), "系统错误")
)
View Source
var ProviderSet = wire.NewSet(NewDictUsecase)

ProviderSet is biz providers.

Functions

This section is empty.

Types

type DictRepo

type DictRepo interface {
	repo.Repo[E, T]
	InitRepo() *repo.BaseRepo[E, T]
	FindChildren(ctx context.Context, id uint64) ([]E, error)
}

type DictUsecase

type DictUsecase struct {
	usecase.BaseUsecase[E, T]
	// contains filtered or unexported fields
}

func NewDictUsecase

func NewDictUsecase(dictRepo DictRepo, tm Transaction, logger log.Logger) *DictUsecase

func (*DictUsecase) FindChildren

func (u *DictUsecase) FindChildren(ctx context.Context, id uint64) ([]E, error)

type E

type E *do.Dict

type T

type T *po.Dict

type Transaction

type Transaction interface {
	InTx(context.Context, func(ctx context.Context) error) error
}

Jump to

Keyboard shortcuts

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