package com.ningdatech.pmapi.sys.manage;

import com.ningdatech.pmapi.common.helper.RegionCacheHelper;
import com.ningdatech.pmapi.sys.model.vo.RegionTreeVO;
import com.ningdatech.pmapi.sys.service.IRegionService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * <p>
 * RegionManage
 * </p>
 *
 * @author ZPF
 * @since 10:39 2023/1/18
 */
@Component
@RequiredArgsConstructor
public class RegionManage {

    private final IRegionService regionService;
    private final RegionCacheHelper regionCache;

    public RegionTreeVO getRegionTree(String regionCode, Integer regionLevel) {
        return regionCache.getRegionTree(regionCode, regionLevel);
    }

}
