package com.bonus.core.allocation.api;

import com.bonus.core.allocation.canteen.model.AllocStall;
import com.bonus.core.allocation.canteen.service.AllocStallService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
@Component
public class AllocStallApi {
   private static final Logger log = LoggerFactory.getLogger(AllocStallApi.class);
   @Resource
   @Lazy
   private AllocStallService allocStallService;

   public AllocStall getAllocStall(Long stallId) {
      return this.allocStallService.getAllocStallCache(stallId);
   }
}
