biz

package
v0.0.0-...-acbaf2f Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 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 Greeter

type Greeter struct {
	Hello string
}

type GreeterRepo

type GreeterRepo interface {
	CreateGreeter(context.Context, *Greeter) error
	UpdateGreeter(context.Context, *Greeter) error
}

type GreeterUsecase

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

func NewGreeterUsecase

func NewGreeterUsecase(repo GreeterRepo, logger log.Logger) *GreeterUsecase

func (*GreeterUsecase) Create

func (uc *GreeterUsecase) Create(ctx context.Context, g *Greeter) error

func (*GreeterUsecase) Update

func (uc *GreeterUsecase) Update(ctx context.Context, g *Greeter) error

type OrderQueueRepo

type OrderQueueRepo interface {
	CreateOrder(ctx context.Context, o *SeckillOrder) (*SeckillOrder, error)
}

type OrderQueueUsecase

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

func NewOrderQueueUsecase

func NewOrderQueueUsecase(repo OrderQueueRepo, logger log.Logger) *OrderQueueUsecase

func (*OrderQueueUsecase) Create

type SeckillOrder

type SeckillOrder struct {
	UserId  int64
	OrderId int64
	GoodsId int64
}

Jump to

Keyboard shortcuts

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