| | |
| | | * 查询AI话术库列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(IvrLibScript ivrLibScript) |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibScript ivrLibScript) |
| | | { |
| | | startPage(); |
| | | List<IvrLibScript> list = ivrLibScriptService.selectIvrLibScriptList(ivrLibScript); |
| | |
| | | */ |
| | | @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)); |
| | |
| | | */ |
| | | @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)); |
| | |
| | | */ |
| | | @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)); |