content: package com.food.order.system;
  
  import com.food.order.system.dto.create.CreateOrderCommand;
  import com.food.order.system.dto.create.CreateOrderResponse;
  import com.food.order.system.dto.track.TrackOrderQuery;
  import com.food.order.system.dto.track.TrackOrderResponse;
  import com.food.order.system.ports.input.service.OrderApplicationService;
  import lombok.RequiredArgsConstructor;
  import lombok.extern.slf4j.Slf4j;
  import org.springframework.stereotype.Component;
  import org.springframework.validation.annotation.Validated;
  
  @Component
  @Validated
  @Slf4j
  @RequiredArgsConstructor
  class OrderApplicationServiceImpl implements OrderApplicationService {
  
      private final OrderCreateCommandHandler orderCreateCommandHandler;
      private final OrderTrackCommandHandler orderTrackCommandHandler;
  
      @Override
      public CreateOrderResponse createOrder(CreateOrderCommand createOrderCommand) {
          return orderCreateCommandHandler.createOrder(createOrderCommand);
      }
  
      @Override
      public TrackOrderResponse trackOrder(TrackOrderQuery trackOrderQuery) {
          return orderTrackCommandHandler.trackOrder(trackOrderQuery);
      }
  }
  