content: package com.food.ordering.system.restaurant.service.domain;
  
  import com.food.ordering.system.restaurant.service.domain.dto.RestaurantApprovalRequest;
  import com.food.ordering.system.restaurant.service.domain.ports.input.message.listener.RestaurantApprovalRequestMessageListener;
  import lombok.extern.slf4j.Slf4j;
  import org.springframework.stereotype.Service;
  
  @Slf4j
  @Service
  public class RestaurantApprovalRequestMessageListenerImpl implements RestaurantApprovalRequestMessageListener {
  
      private final RestaurantApprovalRequestHelper restaurantApprovalRequestHelper;
  
      public RestaurantApprovalRequestMessageListenerImpl(RestaurantApprovalRequestHelper
                                                                  restaurantApprovalRequestHelper) {
          this.restaurantApprovalRequestHelper = restaurantApprovalRequestHelper;
      }
  
      @Override
      public void approveOrder(RestaurantApprovalRequest restaurantApprovalRequest) {
          restaurantApprovalRequestHelper.persistOrderApproval(restaurantApprovalRequest);
      }
  }
  