biz

package
v0.0.0-...-24968f5 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT, MIT Imports: 3 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is biz providers.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id    int
	Name  string
	Email string
	Age   int
	Sex   bool
}

type AccountRepo

type AccountRepo interface {
	ListAccount(context.Context) ([]*Account, error)
	CreateAccount(ctx context.Context, account *Account) (*Account, error)
	Login(ctx context.Context, username string) (*Account, error)
	GetAccount(ctx context.Context, id int) (*Account, error)
}

type AccountUseCase

type AccountUseCase struct {
	Repo AccountRepo
	// contains filtered or unexported fields
}

func NewAccountUseCase

func NewAccountUseCase(repo AccountRepo, logger log.Logger) *AccountUseCase

Jump to

Keyboard shortcuts

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