| | |
| | | /** |
| | | * 查询AI话术库列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(IvrLibScript ivrLibScript) |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibScript ivrLibScript) |
| | | { |
| | | startPage(); |
| | | List<IvrLibScript> list = ivrLibScriptService.selectIvrLibScriptList(ivrLibScript); |
| | |
| | | /** |
| | | * 导出AI话术库列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:export')") |
| | | @Log(title = "AI话术库", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibScript ivrLibScript) |
| | |
| | | /** |
| | | * 获取AI话术库详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:query')") |
| | | @GetMapping(value = "/{scriptid}") |
| | | public AjaxResult getInfo(@PathVariable("scriptid") Long scriptid) |
| | | { |
| | |
| | | /** |
| | | * 新增AI话术库 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:add')") |
| | | @Log(title = "AI话术库", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibScript ivrLibScript) |
| | | { |
| | | return toAjax(ivrLibScriptService.insertIvrLibScript(ivrLibScript)); |
| | |
| | | /** |
| | | * 修改AI话术库 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:edit')") |
| | | @Log(title = "AI话术库", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibScript ivrLibScript) |
| | | { |
| | | return toAjax(ivrLibScriptService.updateIvrLibScript(ivrLibScript)); |
| | |
| | | /** |
| | | * 删除AI话术库 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:remove')") |
| | | @Log(title = "AI话术库", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{scriptids}") |
| | | @GetMapping("/remove/{scriptids}") |
| | | public AjaxResult remove(@PathVariable Long[] scriptids) |
| | | { |
| | | return toAjax(ivrLibScriptService.deleteIvrLibScriptByScriptids(scriptids)); |