service

package
v0.0.0-...-acbaf2f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2021 License: MIT, MIT Imports: 8 Imported by: 0

README

Service

Documentation

Index

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 (*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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL