Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewOrderUsecase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` }
Order is a Order model.
type OrderRepo ¶
type OrderRepo interface {
ListAll(ctx context.Context, pageNum int64, pageSize int64) ([]*Order, error)
}
OrderRepo is a Greater repo.
type OrderUsecase ¶
type OrderUsecase struct {
// contains filtered or unexported fields
}
OrderUsecase is a Order usecase.
func NewOrderUsecase ¶
func NewOrderUsecase(repo OrderRepo, logger log.Logger) *OrderUsecase
NewOrderUsecase new a Order usecase.
Click to show internal directories.
Click to hide internal directories.