feat(file): 添加文件浏览次数统计功能

- 在文件列表表格中新增浏览次数列显示
- 在文件详情描述中添加浏览次数信息展示
- 实现文件浏览次数自增接口 incrementView
- 前端点击文件预览时自动调用浏览次数增加功能
- 后端添加 SysFile 实体类 viewCount 字段
- 实现数据库表字段映射和更新逻辑
- 添加控制器接口 /incrementView/{fileId} 处理请求
This commit is contained in:
jhd
2026-07-04 09:40:48 +08:00
parent fa30ac37e9
commit 5029d09f09
9 changed files with 55 additions and 1 deletions

View File

@@ -15,6 +15,7 @@
<result property="fileType" column="file_type"/>
<result property="scopeType" column="scope_type"/>
<result property="remark" column="remark"/>
<result property="viewCount" column="view_count"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>