| | |
| | | /** |
| | | * 查询任务附件列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('task:general:query')") |
| | | @GetMapping("/list/{taskId}") |
| | | public AjaxResult list(@PathVariable("taskId") Long taskId) { |
| | | SysTask task = sysTaskService.getTaskDetail(taskId); |
| | |
| | | /** |
| | | * 上传任务附件 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('task:general:edit')") |
| | | |
| | | @Log(title = "任务附件", businessType = BusinessType.INSERT) |
| | | @PostMapping("/upload/{taskId}") |
| | | public AjaxResult upload(@PathVariable("taskId") Long taskId, |
| | |
| | | /** |
| | | * 删除任务附件 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('task:general:edit')") |
| | | @Log(title = "任务附件", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{attachmentId}") |
| | | public AjaxResult remove(@PathVariable("attachmentId") Long attachmentId) { |
| | |
| | | /** |
| | | * 从微信mediaId上传附件(微信小程序专用) |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('task:general:edit')") |
| | | @Log(title = "任务附件", businessType = BusinessType.INSERT) |
| | | @PostMapping("/uploadFromWechat/{taskId}") |
| | | public AjaxResult uploadFromWechat(@PathVariable("taskId") Long taskId, |