package com.qianwen.smartman.modules.resource.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.resource.entity.Oss; import com.qianwen.smartman.modules.resource.vo.OssVO; /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/resource/wrapper/OssWrapper.class */ public class OssWrapper extends BaseEntityWrapper { public static OssWrapper build() { return new OssWrapper(); } public OssVO entityVO(Oss oss) { OssVO ossVO = (OssVO) Objects.requireNonNull(BeanUtil.copy(oss, OssVO.class)); String categoryName = DictCache.getValue(DictEnum.OSS, oss.getCategory()); String statusName = DictCache.getValue(DictEnum.YES_NO, oss.getStatus()); ossVO.setCategoryName(categoryName); ossVO.setStatusName(statusName); return ossVO; } }