Files
lone-services/order/internal/server/orderserver.go
T
2026-08-06 13:43:52 +08:00

30 lines
535 B
Go

// Code generated by goctl. DO NOT EDIT.
// goctl 1.10.1
// Source: order.proto
package server
import (
"context"
"order/internal/logic"
"order/internal/svc"
"order/order"
)
type OrderServer struct {
svcCtx *svc.ServiceContext
order.UnimplementedOrderServer
}
func NewOrderServer(svcCtx *svc.ServiceContext) *OrderServer {
return &OrderServer{
svcCtx: svcCtx,
}
}
func (s *OrderServer) Ping(ctx context.Context, in *order.Request) (*order.Response, error) {
l := logic.NewPingLogic(ctx, s.svcCtx)
return l.Ping(in)
}