| | |
| | | import cn.hutool.core.util.ZipUtil; |
| | | |
| | | @Service |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/visual/service/impl/VisualCompServiceImpl.class */ |
| | | |
| | | public class VisualCompServiceImpl extends BaseServiceImpl<VisualCompMapper, VisualComp> implements IVisualCompService { |
| | | @Autowired |
| | | @Lazy |
| | | private IVisualCompTypeService visualCompTypeService; |
| | | |
| | | |
| | | @Override // org.springblade.modules.visual.service.IVisualCompService |
| | | |
| | | public IPage<VisualCompVO> pageVO(IPage<VisualComp> page, Map<String, Object> map) { |
| | | String nameStr = (String) map.get("name"); |
| | | String typeStr = (String) map.get("type"); |
| | |
| | | */ |
| | | } |
| | | |
| | | @Override // org.springblade.modules.visual.service.IVisualCompService |
| | | |
| | | public void componentZipImport(MultipartFile zipFile) throws Exception { |
| | | File localZipFile = new File("static/visual/" + IdWorker.get32UUID() + ".zip"); |
| | | FileUtils.copyToFile(zipFile.getInputStream(), localZipFile); |
| | | componentZipImport(localZipFile); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.visual.service.IVisualCompService |
| | | |
| | | public void componentZipImport(File localZipFile) { |
| | | File unzipFile = ZipUtil.unzip(localZipFile); |
| | | File[] files = unzipFile.listFiles(); |