Documentation ¶
Index ¶
- Variables
- func ShowConfig()
- func ShowConsulConfig()
- type OrderService
- func (s *OrderService) CreateOrder(ctx context.Context, req *pb.CreateOrderRequest) (rsp *pb.CreateOrderReply, err error)
- func (s *OrderService) GetConfig(ctx context.Context, req *pb.GetConfigRequest) (rsp *pb.GetConfigReply, err error)
- func (s *OrderService) ListOrder(ctx context.Context, req *pb.ListOrderRequest) (*pb.ListOrderReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewOrderService)
ProviderSet is service providers.
Functions ¶
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)
*
- 查询订单数据,并格式化返回
Click to show internal directories.
Click to hide internal directories.