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: 5 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewOrderService)

ProviderSet is service providers.

Functions

This section is empty.

Types

type OrderService

type OrderService struct {
	pb.UnimplementedOrderServer
	// contains filtered or unexported fields
}

func NewOrderService

func NewOrderService(uc *biz.OrderUsecase, so *biz.SeckillOrderUsecase, goods *biz.SeckillGoodsUsecase, logger log.Logger) *OrderService

func (*OrderService) CreateOrder

func (s *OrderService) CreateOrder(ctx context.Context, req *pb.CreateOrderRequest) (*pb.CreateOrderReply, error)

func (*OrderService) CreateSeckillOrder

func (*OrderService) CreateSeckillOrderCancel

func (s *OrderService) CreateSeckillOrderCancel(ctx context.Context, req *pb.CreateSeckillOrderRequest) (*pb.CreateSeckillOrderReply, error)

func (*OrderService) CreateSeckillOrderConfirm

func (s *OrderService) CreateSeckillOrderConfirm(ctx context.Context, req *pb.CreateSeckillOrderRequest) (*pb.CreateSeckillOrderReply, error)

func (*OrderService) CreateSeckillOrderTry

func (s *OrderService) CreateSeckillOrderTry(ctx context.Context, req *pb.CreateSeckillOrderRequest) (*pb.CreateSeckillOrderReply, error)

Jump to

Keyboard shortcuts

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