文件下载记录及资源详情下载用户统计 #1

Merged
otto merged 8 commits from wanjia9506/microservices:aiResourceMRCS into aiResourceMRCS 2026-06-30 16:12:50 +08:00
Owner
No description provided.
wanjia9506 added 8 commits 2026-06-30 10:37:43 +08:00
0a39106b05 feat: 新增文件下载记录及资源详情下载用户统计
- 新建 sys_file_download_log 表,记录每次下载的用户名和IP
- 登录用户记录用户名+IP,未登录用户仅记录IP
- 文件下载接口(fileDownloadById/fileDownloadByIdentifier)自动记录下载日志
- 资源详情接口(getInfo)返回附件下载用户列表,通过Feign查询文件微服务
- 新增 RemoteFileService.getDownloadUserList Feign接口及降级实现
e388ee1560 refactor: 下载记录改为明细列表,新增SysFileDownloadLogVo
- 新增 SysFileDownloadLogVo 跨服务共享VO(fileId/userName/ipAddr/downloadTime)
- getDownloadUserListByFileIds 返回类型从 Map<Long,List<String>> 改为 List<SysFileDownloadLogVo>
- downloadUserSummary 改为下载明细列表,直接展示每条的附件ID、用户、IP、时间
- 未登录用户不记录用户名,仅记录IP
- fileList[*].downloadUserList 保留(按附件去重的用户名列表)
- 同步更新 Feign接口、FallbackFactory、所有引用处
36a1f70963 feat: 下载日志增加userId,下载记录返回用户昵称/手机号/邮箱
- sys_file_download_log 表新增 user_id 字段
- recordDownloadLog 记录登录用户的 userId
- SysFileDownloadLogVo 新增 userId/nickName/phonenumber/email 字段
- populateDownloadUsers 通过 RemoteUserService 逐用户查询补全详情
otto merged commit 64d5b72a41 into aiResourceMRCS 2026-06-30 16:12:50 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Gitlink/microservices#1
No description provided.