30 lines
604 B
Go
30 lines
604 B
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.10.2
|
|
// Source: order.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"lone-services/rpc/order/pb"
|
|
"lone-services/services/order/internal/logic"
|
|
"lone-services/services/order/internal/svc"
|
|
)
|
|
|
|
type OrderServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
order.UnimplementedOrderServer
|
|
}
|
|
|
|
func NewOrderServer(svcCtx *svc.ServiceContext) *OrderServer {
|
|
return &OrderServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (s *OrderServer) Items(ctx context.Context, in *order.ItemsRequest) (*order.Response, error) {
|
|
l := logic.NewItemsLogic(ctx, s.svcCtx)
|
|
return l.Items(in)
|
|
}
|