feat: 审核通过移动文件到approved,拒绝删除pending文件

- StorageService 新增 delete()
- approve: 文件 pending → approved
- reject: 删除 pending 文件
This commit is contained in:
mediabot-pt
2026-06-29 23:21:44 +08:00
parent 7d7de75bbd
commit b806a01f13
5 changed files with 33 additions and 0 deletions

View File

@@ -135,6 +135,10 @@ public class AdminController {
Long reviewerId = (Long) request.getAttribute("accountId");
// 删除 pending 文件
storageService.delete(config.getStoragePath());
config.setStoragePath(null);
config.setStatus(ConfigStatus.REJECTED);
config.setReviewerId(reviewerId);
config.setReviewedAt(LocalDateTime.now());