| | |
| | | /** |
| | | * 查询AI外呼意图列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrintent:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(IvrSceneIntent ivrSceneIntent) |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneIntent ivrSceneIntent) |
| | | { |
| | | startPage(); |
| | | List<IvrSceneIntent> list = ivrSceneIntentService.selectIvrSceneIntentList(ivrSceneIntent); |
| | |
| | | /** |
| | | * 导出AI外呼意图列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrintent:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:export')") |
| | | @Log(title = "AI外呼意图", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneIntent ivrSceneIntent) |
| | |
| | | /** |
| | | * 获取AI外呼意图详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrintent:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:query')") |
| | | @GetMapping(value = "/{sceneintentid}") |
| | | public AjaxResult getInfo(@PathVariable("sceneintentid") Long sceneintentid) |
| | | { |
| | |
| | | /** |
| | | * 新增AI外呼意图 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrintent:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:add')") |
| | | @Log(title = "AI外呼意图", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneIntent ivrSceneIntent) |
| | | { |
| | | return toAjax(ivrSceneIntentService.insertIvrSceneIntent(ivrSceneIntent)); |
| | |
| | | /** |
| | | * 修改AI外呼意图 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrintent:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:edit')") |
| | | @Log(title = "AI外呼意图", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneIntent ivrSceneIntent) |
| | | { |
| | | return toAjax(ivrSceneIntentService.updateIvrSceneIntent(ivrSceneIntent)); |
| | |
| | | /** |
| | | * 删除AI外呼意图 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrintent:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:remove')") |
| | | @Log(title = "AI外呼意图", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{sceneintentids}") |
| | | @GetMapping("/remove/{sceneintentids}") |
| | | public AjaxResult remove(@PathVariable Long[] sceneintentids) |
| | | { |
| | | return toAjax(ivrSceneIntentService.deleteIvrSceneIntentBySceneintentids(sceneintentids)); |