biz

package
v0.0.0-...-3a46aa3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewUserUsecase)

Functions

This section is empty.

Types

type Transaction

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

type UserRepo

type UserRepo interface {
	CreateUser(ctx context.Context, name string) (int64, error)
	CreateUserDetail(ctx context.Context, id int64, phone string) (int64, error)
}

type UserUsecase

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

func NewUserUsecase

func NewUserUsecase(repo UserRepo, tx Transaction) *UserUsecase

func (*UserUsecase) CreateUser

func (u *UserUsecase) CreateUser(ctx context.Context, name, email string) (int64, error)

Jump to

Keyboard shortcuts

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