Skip to content

Commit ab79b07

Browse files
committed
feat: 删除文件接口启用 ApiLogger
1 parent 794c55c commit ab79b07

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • framework/framework_base/src/main/java/com/github/cadecode/uniboot/framework/base/plugin/controller

framework/framework_base/src/main/java/com/github/cadecode/uniboot/framework/base/plugin/controller/PlgFileController.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import cn.hutool.core.util.ObjUtil;
44
import cn.hutool.extra.servlet.ServletUtil;
55
import com.github.cadecode.uniboot.common.core.web.response.PageResult;
6+
import com.github.cadecode.uniboot.common.plugin.log.annotation.ApiLogger;
7+
import com.github.cadecode.uniboot.framework.api.consts.LogTypeConst;
68
import com.github.cadecode.uniboot.framework.base.annotation.ApiFormat;
79
import com.github.cadecode.uniboot.framework.base.plugin.bean.po.PlgFile;
810
import com.github.cadecode.uniboot.framework.base.plugin.bean.vo.PlgFileVo.PlgFilePageReqVo;
@@ -133,12 +135,14 @@ public void downloadTemp(HttpServletResponse response,
133135
fileStorageService.delete(fileInfo);
134136
}
135137

138+
@ApiLogger(type = LogTypeConst.REMOVE, enableSave = true)
136139
@ApiOperation("通用删除文件-byUrl")
137140
@PostMapping("storage/delete_by_url")
138141
public boolean deleteFile(@RequestParam String url) {
139142
return fileStorageService.delete(url);
140143
}
141144

145+
@ApiLogger(type = LogTypeConst.REMOVE, enableSave = true)
142146
@ApiOperation("通用删除文件-byId")
143147
@PostMapping("storage/delete_by_id")
144148
public List<FileInfo> deleteFiles(@RequestBody List<Long> idList) {

0 commit comments

Comments
 (0)