package com.qianwen.smartman.modules.system.wrapper; import java.util.Objects; import com.qianwen.smartman.common.cache.DictCache; import com.qianwen.smartman.common.enums.DictEnum; import com.qianwen.core.mp.support.BaseEntityWrapper; import com.qianwen.core.tool.utils.BeanUtil; import com.qianwen.smartman.modules.system.entity.DataScope; import com.qianwen.smartman.modules.system.vo.DataScopeVO; /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/wrapper/DataScopeWrapper.class */ public class DataScopeWrapper extends BaseEntityWrapper { public static DataScopeWrapper build() { return new DataScopeWrapper(); } public DataScopeVO entityVO(DataScope dataScope) { DataScopeVO dataScopeVO = (DataScopeVO) Objects.requireNonNull(BeanUtil.copy(dataScope, DataScopeVO.class)); String scopeTypeName = DictCache.getValue(DictEnum.DATA_SCOPE_TYPE, dataScope.getScopeType()); dataScopeVO.setScopeTypeName(scopeTypeName); return dataScopeVO; } }