From b5c022295a2d678edff3f54d9ee10e2fa1515c2d Mon Sep 17 00:00:00 2001
From: zhaowenyu <35589726@qq.com>
Date: Fri, 27 Feb 2026 09:39:40 +0800
Subject: [PATCH] 2026-02-27 优化媒体文件入库;新增视频时长、开始拍摄时间、结束时间;

---
 ard-admin/src/main/java/com/ard/web/controller/sample/media/FileController.java |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/ard-admin/src/main/java/com/ard/web/controller/sample/media/FileController.java b/ard-admin/src/main/java/com/ard/web/controller/sample/media/FileController.java
index 62106be..860cd75 100644
--- a/ard-admin/src/main/java/com/ard/web/controller/sample/media/FileController.java
+++ b/ard-admin/src/main/java/com/ard/web/controller/sample/media/FileController.java
@@ -6,6 +6,7 @@
 import com.ard.sample.media.service.IFileService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 
@@ -58,13 +59,26 @@
 
     /**
      * 根据任务id获取全部媒体库文件列表
+     *
+     * @param page     页码,默认值为1,从1开始计数
+     * @param pageSize 每页条数,默认值为10,参数名映射为page_size(前端传参用)
+     * @param jobId    任务ID,必填参数,用于筛选指定任务下的媒体文件
+     * @param isType   文件类型筛选标识,非必填(若需必填可加required = true):
+     *                 1 - 筛选文件名包含V.jpeg的文件;
+     *                 0 - 筛选文件名包含V.mp4的文件
+     * @return 分页的媒体文件列表数据
      * */
     @ApiOperation("获取任务中媒体文件列表")
     @GetMapping("/jobfiles")
-    public ResponseResult<PaginationData<MediaFileDTO>> getJobFiles(@RequestParam(defaultValue = "1") Long page,
+    public ResponseResult<PaginationData<MediaFileDTO>> getJobFiles(@ApiParam(value = "页码,默认1", defaultValue = "1")
+                                                                    @RequestParam(defaultValue = "1") Long page,
+                                                                    @ApiParam(value = "每页条数,默认10", defaultValue = "10")
                                                                     @RequestParam(name = "page_size", defaultValue = "10") Long pageSize,
-                                                                    @RequestParam(name = "job_id") String jobId) {
-        PaginationData<MediaFileDTO> filesList = fileService.getJobFiles(page, pageSize, jobId);
+                                                                    @ApiParam(value = "任务ID(必填),筛选指定任务下的文件", required = true)
+                                                                    @RequestParam(name = "job_id") String jobId,
+                                                                    @ApiParam(value = "文件类型筛选:1=V.jpeg文件,0=V.mp4文件")
+                                                                    @RequestParam(name = "isType") String isType) {
+        PaginationData<MediaFileDTO> filesList = fileService.getJobFiles(page, pageSize, jobId, isType);
         return ResponseResult.success(filesList);
     }
 }

--
Gitblit v1.9.3