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.ApiScope;
|
import com.qianwen.smartman.modules.system.vo.ApiScopeVO;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/wrapper/ApiScopeWrapper.class */
|
public class ApiScopeWrapper extends BaseEntityWrapper<ApiScope, ApiScopeVO> {
|
public static ApiScopeWrapper build() {
|
return new ApiScopeWrapper();
|
}
|
|
public ApiScopeVO entityVO(ApiScope dataScope) {
|
ApiScopeVO apiScopeVO = (ApiScopeVO) Objects.requireNonNull(BeanUtil.copy(dataScope, ApiScopeVO.class));
|
String scopeTypeName = DictCache.getValue(DictEnum.API_SCOPE_TYPE, dataScope.getScopeType());
|
apiScopeVO.setScopeTypeName(scopeTypeName);
|
return apiScopeVO;
|
}
|
}
|