service

package
v0.0.0-...-e6547ed Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 13 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

func ShowConfig

func ShowConfig()

*

  • 从文件获取配置

func ShowConsulConfig

func ShowConsulConfig()

*

  • 显示cunsul配置

Types

type OrderService

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

func NewOrderService

func NewOrderService(oc *biz.OrderUsecase, logger log.Logger) *OrderService

func (*OrderService) CreateOrder

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

*

  • 创建订单
  • HTTP POST请求

func (*OrderService) GetConfig

func (s *OrderService) GetConfig(ctx context.Context, req *pb.GetConfigRequest) (rsp *pb.GetConfigReply, err error)

*

  • 获取配置

func (*OrderService) ListOrder

func (s *OrderService) ListOrder(ctx context.Context, req *pb.ListOrderRequest) (*pb.ListOrderReply, error)

*

  • 查询订单数据,并格式化返回

Jump to

Keyboard shortcuts

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