Skip to content

Commit d32216d

Browse files
committed
update
1 parent a6e57e1 commit d32216d

5 files changed

Lines changed: 0 additions & 27 deletions

File tree

eladmin-system/src/main/java/me/zhengjie/modules/system/rest/DeptController.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package me.zhengjie.modules.system.rest;
22

33
import cn.hutool.core.collection.CollectionUtil;
4-
import cn.hutool.core.util.IdUtil;
54
import io.swagger.annotations.Api;
65
import io.swagger.annotations.ApiOperation;
76
import me.zhengjie.aop.log.Log;
@@ -11,7 +10,6 @@
1110
import me.zhengjie.modules.system.service.DeptService;
1211
import me.zhengjie.modules.system.service.dto.DeptDto;
1312
import me.zhengjie.modules.system.service.dto.DeptQueryCriteria;
14-
import me.zhengjie.utils.RedisUtils;
1513
import me.zhengjie.utils.ThrowableUtil;
1614
import org.springframework.http.HttpStatus;
1715
import org.springframework.http.ResponseEntity;

eladmin-tools/src/main/java/me/zhengjie/rest/LocalStorageController.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,6 @@ public ResponseEntity<Object> update(@Validated @RequestBody LocalStorage resour
6161
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
6262
}
6363

64-
@ApiOperation("删除文件")
65-
@DeleteMapping(value = "/{id}")
66-
@PreAuthorize("@el.check('storage:del')")
67-
public ResponseEntity<Object> delete(@PathVariable Long id){
68-
localStorageService.delete(id);
69-
return new ResponseEntity<>(HttpStatus.OK);
70-
}
71-
7264
@Log("多选删除")
7365
@DeleteMapping
7466
@ApiOperation("多选删除")

eladmin-tools/src/main/java/me/zhengjie/rest/PictureController.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
import org.springframework.web.multipart.MultipartFile;
1616
import javax.servlet.http.HttpServletResponse;
1717
import java.io.IOException;
18-
import java.util.HashMap;
19-
import java.util.Map;
2018

2119
/**
2220
* @author 郑杰

eladmin-tools/src/main/java/me/zhengjie/service/LocalStorageService.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ public interface LocalStorageService {
5151
*/
5252
void update(LocalStorage resources);
5353

54-
/**
55-
* 根据ID删除
56-
* @param id /
57-
*/
58-
void delete(Long id);
59-
6054
/**
6155
* 多选删除
6256
* @param ids /

eladmin-tools/src/main/java/me/zhengjie/service/impl/LocalStorageServiceImpl.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,6 @@ public void update(LocalStorage resources) {
113113
localStorageRepository.save(localStorage);
114114
}
115115

116-
@Override
117-
@CacheEvict(allEntries = true)
118-
@Transactional(rollbackFor = Exception.class)
119-
public void delete(Long id) {
120-
LocalStorage storage = localStorageRepository.findById(id).orElseGet(LocalStorage::new);
121-
FileUtil.del(storage.getPath());
122-
localStorageRepository.delete(storage);
123-
}
124-
125116
@Override
126117
@CacheEvict(allEntries = true)
127118
@Transactional(rollbackFor = Exception.class)

0 commit comments

Comments
 (0)