c33fbdb422
CI / changes (push) Successful in 4s
CI / docker-bff (push) Successful in 3m21s
CI / docker-product (push) Successful in 3m39s
CI / docker-admin (push) Successful in 3m34s
CI / docker-user (push) Successful in 3m29s
CI / docker-ad (push) Successful in 3m29s
90 lines
2.9 KiB
Go
90 lines
2.9 KiB
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.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) 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) WebAddressStatus(ctx context.Context, in *order.StatusAddressRequest) (*order.Response, error) {
|
|
l := logic.NewWebAddressStatusLogic(ctx, s.svcCtx)
|
|
return l.WebAddressStatus(in)
|
|
}
|
|
|
|
func (s *OrderServer) WebAddressDef(ctx context.Context, in *order.IdRequest) (*order.Response, error) {
|
|
l := logic.NewWebAddressDefLogic(ctx, s.svcCtx)
|
|
return l.WebAddressDef(in)
|
|
}
|
|
|
|
func (s *OrderServer) WebAddressItems(ctx context.Context, in *order.EmptyRequest) (*order.Response, error) {
|
|
l := logic.NewWebAddressItemsLogic(ctx, s.svcCtx)
|
|
return l.WebAddressItems(in)
|
|
}
|
|
|
|
func (s *OrderServer) WebCart(ctx context.Context, in *order.EmptyRequest) (*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)
|
|
}
|