|
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
|
+import com.wtkj.dto.SelectFileDTO;
|
|
|
import com.wtkj.dto.UploadFileDTO;
|
|
|
import com.wtkj.entity.FileAndFolder;
|
|
|
import com.wtkj.entity.FileRead;
|
|
@@ -175,4 +176,18 @@ public class FileAndFolderController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 文件选择列表
|
|
|
+ */
|
|
|
+ @PostMapping("/select-file")
|
|
|
+ @ApiOperationSupport(order = 11)
|
|
|
+ @ApiOperation(value = "选择文件", notes = "")
|
|
|
+ public R selectFile(@RequestBody @Valid SelectFileDTO dto) {
|
|
|
+ Query query = new Query();
|
|
|
+ query.setCurrent(dto.getCurrent());
|
|
|
+ query.setSize(dto.getSize());
|
|
|
+ IPage<FileAndFolder> page = fileAndFolderService.selectPage(dto.getProjectId(), dto.getStageId(), dto.getIsLatest(), Condition.getPage(query));
|
|
|
+ return R.data(FileAndFolderWrapper.build().pageVO(page));
|
|
|
+ }
|
|
|
+
|
|
|
}
|