Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGoodsUsecase, NewOrdersUsecase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type GoodsUsecase ¶
type GoodsUsecase struct {
// contains filtered or unexported fields
}
func NewGoodsUsecase ¶
func NewGoodsUsecase(repo GoodsRepo, logger log.Logger) *GoodsUsecase
type OrderGoods ¶
type OrdersRepo ¶
type OrdersRepo interface { GetOrders(ctx context.Context, id int64) (*Orders, error) ListOrders(ctx context.Context) (*Orders, error) CreateOrders(ctx context.Context, orders Orders) error UpdateOrders(ctx context.Context, orders Orders) error }
定义接口
type OrdersUsecase ¶
type OrdersUsecase struct {
// contains filtered or unexported fields
}
func NewOrdersUsecase ¶
func NewOrdersUsecase(repo OrdersRepo, logger log.Logger) *OrdersUsecase
定义注入方法
func (*OrdersUsecase) CreateOrders ¶
func (m *OrdersUsecase) CreateOrders(ctx context.Context, orders Orders) error
Click to show internal directories.
Click to hide internal directories.