| | |
| | | * @author xia |
| | | * @date 2025-10-18 |
| | | */ |
| | | @Api(tags = "文件") |
| | | //@Api(tags = "文件") |
| | | @RestController |
| | | @RequestMapping("/route/file") |
| | | public class ArdRouteFileController extends BaseController { |
| | |
| | | /** |
| | | * 查询文件列表 |
| | | */ |
| | | @ApiOperation("查询文件列表") |
| | | @PreAuthorize("@ss.hasPermi('route:file:list')") |
| | | //@ApiOperation("查询文件列表") |
| | | //@PreAuthorize("@ss.hasPermi('route:file:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ArdRouteFile ardRouteFile) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导出文件列表 |
| | | */ |
| | | @ApiOperation("导出文件列表") |
| | | @PreAuthorize("@ss.hasPermi('route:file:export')") |
| | | //@ApiOperation("导出文件列表") |
| | | //@PreAuthorize("@ss.hasPermi('route:file:export')") |
| | | @Log(title = "文件", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ArdRouteFile ardRouteFile) { |
| | |
| | | /** |
| | | * 获取文件详细信息 |
| | | */ |
| | | @ApiOperation("获取文件详细信息") |
| | | @PreAuthorize("@ss.hasPermi('route:file:query')") |
| | | //@ApiOperation("获取文件详细信息") |
| | | //@PreAuthorize("@ss.hasPermi('route:file:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | | return success(ardRouteFileService.selectArdRouteFileById(id)); |
| | |
| | | /** |
| | | * 新增文件 |
| | | */ |
| | | @ApiOperation("新增文件") |
| | | @PreAuthorize("@ss.hasPermi('route:file:add')") |
| | | //@ApiOperation("新增文件") |
| | | //@PreAuthorize("@ss.hasPermi('route:file:add')") |
| | | @Log(title = "文件", businessType = BusinessType.INSERT) |
| | | //@PostMapping("/addFile/{folderId}") |
| | | @PostMapping("/addFile") |
| | |
| | | /** |
| | | * 修改文件 |
| | | */ |
| | | @ApiOperation("修改文件") |
| | | @PreAuthorize("@ss.hasPermi('route:file:edit')") |
| | | //@ApiOperation("修改文件") |
| | | //@PreAuthorize("@ss.hasPermi('route:file:edit')") |
| | | @Log(title = "文件", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ArdRouteFile ardRouteFile) { |
| | |
| | | /** |
| | | * 删除文件 |
| | | */ |
| | | @ApiOperation("删除文件") |
| | | @PreAuthorize("@ss.hasPermi('route:file:remove')") |
| | | //@ApiOperation("删除文件") |
| | | //@PreAuthorize("@ss.hasPermi('route:file:remove')") |
| | | @Log(title = "文件", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) { |