Documentation ¶
Index ¶
- Variables
- 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(NewOrderUseCase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
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.