package com.bonus.canteen.core.supermarket.api;

import com.bonus.canteen.core.auth.api.MgrAuthApi;
import com.bonus.common.houqin.constant.LeConstants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class SupermarketAuthApi {
   private static final Logger log = LoggerFactory.getLogger(SupermarketAuthApi.class);
   @Autowired
   @Lazy
   private MgrAuthApi mgrAuthApi;

   public List<Long> listAreaAuth() {
      return this.mgrAuthApi.getTenantAreaIdList(LeConstants.COMMON_YES);
   }
}
