Documentation ¶
Index ¶
- Variables
- type GoodsService
- func (s *GoodsService) CreateOrders(ctx context.Context, req *pb.CreateOrdersRequest) (*pb.CreateOrdersReply, error)
- func (s *GoodsService) CreateOrdersCancel(ctx context.Context, req *pb.CreateOrdersRequest) (*pb.CreateOrdersReply, error)
- func (s *GoodsService) CreateOrdersConfirm(ctx context.Context, req *pb.CreateOrdersRequest) (*pb.CreateOrdersReply, error)
- func (s *GoodsService) CreateOrdersTccTry(ctx context.Context, req *pb.CreateOrdersRequest) (*pb.CreateOrdersReply, error)
- func (s *GoodsService) GetGoods(ctx context.Context, req *pb.GetGoodsRequest) (*pb.GetGoodsReply, error)
- func (s *GoodsService) GetOrders(ctx context.Context, req *pb.GetOrdersRequest) (*pb.GetOrdersReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGoodsService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type GoodsService ¶
type GoodsService struct { pb.UnimplementedGoodsServer // contains filtered or unexported fields }
func NewGoodsService ¶
func NewGoodsService(uc *biz.GoodsUsecase, oc *biz.OrdersUsecase, logger log.Logger) *GoodsService
func (*GoodsService) CreateOrders ¶
func (s *GoodsService) CreateOrders(ctx context.Context, req *pb.CreateOrdersRequest) (*pb.CreateOrdersReply, error)
func (*GoodsService) CreateOrdersCancel ¶
func (s *GoodsService) CreateOrdersCancel(ctx context.Context, req *pb.CreateOrdersRequest) (*pb.CreateOrdersReply, error)
tcc-cancel
func (*GoodsService) CreateOrdersConfirm ¶
func (s *GoodsService) CreateOrdersConfirm(ctx context.Context, req *pb.CreateOrdersRequest) (*pb.CreateOrdersReply, error)
tcc-confirm
func (*GoodsService) CreateOrdersTccTry ¶
func (s *GoodsService) CreateOrdersTccTry(ctx context.Context, req *pb.CreateOrdersRequest) (*pb.CreateOrdersReply, error)
tcc-try
func (*GoodsService) GetGoods ¶
func (s *GoodsService) GetGoods(ctx context.Context, req *pb.GetGoodsRequest) (*pb.GetGoodsReply, error)
func (*GoodsService) GetOrders ¶
func (s *GoodsService) GetOrders(ctx context.Context, req *pb.GetOrdersRequest) (*pb.GetOrdersReply, error)
Click to show internal directories.
Click to hide internal directories.