// 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.OrderItemsRequest) (*order.Response, error) { l := logic.NewItemsLogic(ctx, s.svcCtx) return l.Items(in) } func (s *OrderServer) WebCreate(ctx context.Context, in *order.CreateOrderRequest) (*order.Response, error) { l := logic.NewWebCreateLogic(ctx, s.svcCtx) return l.WebCreate(in) } func (s *OrderServer) WebCreateOne(ctx context.Context, in *order.CreateOrderOneRequest) (*order.Response, error) { l := logic.NewWebCreateOneLogic(ctx, s.svcCtx) return l.WebCreateOne(in) } func (s *OrderServer) WebAddressCreate(ctx context.Context, in *order.EditAddressRequest) (*order.Response, error) { l := logic.NewWebAddressCreateLogic(ctx, s.svcCtx) return l.WebAddressCreate(in) } func (s *OrderServer) WebAddressEdit(ctx context.Context, in *order.EditAddressRequest) (*order.Response, error) { l := logic.NewWebAddressEditLogic(ctx, s.svcCtx) return l.WebAddressEdit(in) } func (s *OrderServer) WebAddressDel(ctx context.Context, in *order.IdAndTypeRequest) (*order.Response, error) { l := logic.NewWebAddressDelLogic(ctx, s.svcCtx) return l.WebAddressDel(in) } func (s *OrderServer) WebAddressDef(ctx context.Context, in *order.IdAndTypeRequest) (*order.Response, error) { l := logic.NewWebAddressDefLogic(ctx, s.svcCtx) return l.WebAddressDef(in) } func (s *OrderServer) WebAddressInfo(ctx context.Context, in *order.IdAndTypeRequest) (*order.Response, error) { l := logic.NewWebAddressInfoLogic(ctx, s.svcCtx) return l.WebAddressInfo(in) } func (s *OrderServer) WebAddressItems(ctx context.Context, in *order.TypeRequest) (*order.Response, error) { l := logic.NewWebAddressItemsLogic(ctx, s.svcCtx) return l.WebAddressItems(in) } func (s *OrderServer) WebCart(ctx context.Context, in *order.CartRequest) (*order.Response, error) { l := logic.NewWebCartLogic(ctx, s.svcCtx) return l.WebCart(in) } func (s *OrderServer) WebCartEdit(ctx context.Context, in *order.EditCartRequest) (*order.Response, error) { l := logic.NewWebCartEditLogic(ctx, s.svcCtx) return l.WebCartEdit(in) } func (s *OrderServer) AddressItem(ctx context.Context, in *order.AddressItemsRequest) (*order.Response, error) { l := logic.NewAddressItemLogic(ctx, s.svcCtx) return l.AddressItem(in) } func (s *OrderServer) OrderAuditingItems(ctx context.Context, in *order.OrderAuditingItemsRequest) (*order.Response, error) { l := logic.NewOrderAuditingItemsLogic(ctx, s.svcCtx) return l.OrderAuditingItems(in) } func (s *OrderServer) OrderAuditing(ctx context.Context, in *order.OrderAuditingRequest) (*order.Response, error) { l := logic.NewOrderAuditingLogic(ctx, s.svcCtx) return l.OrderAuditing(in) } func (s *OrderServer) OrderCreate(ctx context.Context, in *order.AdminCreateOrderRequest) (*order.Response, error) { l := logic.NewOrderCreateLogic(ctx, s.svcCtx) return l.OrderCreate(in) }