Documentation ¶
Index ¶
- Variables
- type Greeter
- type GreeterRepo
- type GreeterUsecase
- type Order
- type OrderRepo
- type OrderUseCase
- func (uc *OrderUseCase) Create(ctx context.Context, u *Order) (*Order, error)
- func (uc *OrderUseCase) Get(ctx context.Context, id int64) (*Order, error)
- func (uc *OrderUseCase) List(ctx context.Context, pageNum, pageSize int64) ([]*Order, error)
- func (uc *OrderUseCase) Update(ctx context.Context, u *Order) (*Order, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGreeterUsecase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type GreeterRepo ¶
type GreeterUsecase ¶
type GreeterUsecase struct {
// contains filtered or unexported fields
}
func NewGreeterUsecase ¶
func NewGreeterUsecase(repo GreeterRepo, logger log.Logger) *GreeterUsecase
type OrderUseCase ¶
type OrderUseCase struct {
// contains filtered or unexported fields
}
func NewOrderUseCase ¶
func NewOrderUseCase(repo OrderRepo, logger log.Logger) *OrderUseCase
Click to show internal directories.
Click to hide internal directories.