| | |
| | | |
| | | /** |
| | | * AI外呼重拨配置Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-06 |
| | | */ |
| | |
| | | /** |
| | | * 查询AI外呼重拨配置列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrrecall:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(IvrSceneRecall ivrSceneRecall) |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneRecall ivrSceneRecall) |
| | | { |
| | | startPage(); |
| | | List<IvrSceneRecall> list = ivrSceneRecallService.selectIvrSceneRecallList(ivrSceneRecall); |
| | |
| | | /** |
| | | * 导出AI外呼重拨配置列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrrecall:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:export')") |
| | | @Log(title = "AI外呼重拨配置", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneRecall ivrSceneRecall) |
| | |
| | | /** |
| | | * 获取AI外呼重拨配置详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrrecall:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:query')") |
| | | @GetMapping(value = "/{recallid}") |
| | | public AjaxResult getInfo(@PathVariable("recallid") Long recallid) |
| | | { |
| | |
| | | /** |
| | | * 新增AI外呼重拨配置 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrrecall:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:add')") |
| | | @Log(title = "AI外呼重拨配置", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneRecall ivrSceneRecall) |
| | | { |
| | | return toAjax(ivrSceneRecallService.insertIvrSceneRecall(ivrSceneRecall)); |
| | |
| | | /** |
| | | * 修改AI外呼重拨配置 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrrecall:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:edit')") |
| | | @Log(title = "AI外呼重拨配置", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneRecall ivrSceneRecall) |
| | | { |
| | | return toAjax(ivrSceneRecallService.updateIvrSceneRecall(ivrSceneRecall)); |
| | |
| | | /** |
| | | * 删除AI外呼重拨配置 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrrecall:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:remove')") |
| | | @Log(title = "AI外呼重拨配置", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{recallids}") |
| | | @GetMapping("/remove/{recallids}") |
| | | public AjaxResult remove(@PathVariable Long[] recallids) |
| | | { |
| | | return toAjax(ivrSceneRecallService.deleteIvrSceneRecallByRecallids(recallids)); |