| | |
| | | /** |
| | | * 查询【请填写功能名称】列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:file:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(MinioFile minioFile) { |
| | | //@PreAuthorize("@ss.hasPermi('system:file:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody MinioFile minioFile) { |
| | | startPage(); |
| | | List<MinioFile> list = minioFileService.selectMinioFileList(minioFile); |
| | | return getDataTable(list); |
| | |
| | | /** |
| | | * 导出【请填写功能名称】列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:file:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:file:export')") |
| | | @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, MinioFile minioFile) { |
| | |
| | | /** |
| | | * 获取【请填写功能名称】详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:file:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:file:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(minioFileService.selectMinioFileById(id)); |
| | |
| | | /** |
| | | * 新增【请填写功能名称】 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:file:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:file:add')") |
| | | @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody MinioFile minioFile) { |
| | | return toAjax(minioFileService.insertMinioFile(minioFile)); |
| | | } |
| | |
| | | /** |
| | | * 修改【请填写功能名称】 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:file:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:file:edit')") |
| | | @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody MinioFile minioFile) { |
| | | return toAjax(minioFileService.updateMinioFile(minioFile)); |
| | | } |
| | |
| | | /** |
| | | * 删除【请填写功能名称】 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:file:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:file:remove')") |
| | | @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(minioFileService.deleteMinioFileByIds(ids)); |
| | | } |
| | |
| | | @ResponseBody |
| | | @ApiOperation(value = "上传文件到文件管理,支持批量上传") |
| | | @ApiImplicitParam(name = "files", value = "文件对象", dataType = "File") |
| | | public AjaxResult commonUploadFile(@RequestParam("path") String path, @RequestParam("files") List<MultipartFile> files) { |
| | | public AjaxResult commonUploadFile(@RequestParam(value = "path",required = false) String path, @RequestParam("files") List<MultipartFile> files) { |
| | | if (CollectionUtils.isEmpty(files)) { |
| | | return error("未选择文件!"); |
| | | } |
| | |
| | | /** |
| | | * 获取(宣教)引用模板 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:file:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:file:list')") |
| | | @ApiOperation(value = "获取(宣教)引用模板") |
| | | @GetMapping("/getEduTemplage") |
| | | public AjaxResult getEduTemplage() { |