| | |
| | | * 查询语音任务列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtask:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(IvrTask ivrTask) |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrTask ivrTask) |
| | | { |
| | | startPage(); |
| | | List<IvrTask> list = ivrTaskService.selectIvrTaskList(ivrTask); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtask:add')") |
| | | @Log(title = "语音任务", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrTask ivrTask) |
| | | { |
| | | return toAjax(ivrTaskService.insertIvrTask(ivrTask)); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtask:edit')") |
| | | @Log(title = "语音任务", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrTask ivrTask) |
| | | { |
| | | return toAjax(ivrTaskService.updateIvrTask(ivrTask)); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtask:remove')") |
| | | @Log(title = "语音任务", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{taskids}") |
| | | @GetMapping("/remove/{taskids}") |
| | | public AjaxResult remove(@PathVariable Long[] taskids) |
| | | { |
| | | return toAjax(ivrTaskService.deleteIvrTaskByTaskids(taskids)); |