| | |
| | | * 查询AI话术模块列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(IvrLibScriptmodel ivrLibScriptmodel) |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibScriptmodel ivrLibScriptmodel) |
| | | { |
| | | startPage(); |
| | | List<IvrLibScriptmodel> list = ivrLibScriptmodelService.selectIvrLibScriptmodelList(ivrLibScriptmodel); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:add')") |
| | | @Log(title = "AI话术模块", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibScriptmodel ivrLibScriptmodel) |
| | | { |
| | | return toAjax(ivrLibScriptmodelService.insertIvrLibScriptmodel(ivrLibScriptmodel)); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:edit')") |
| | | @Log(title = "AI话术模块", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibScriptmodel ivrLibScriptmodel) |
| | | { |
| | | return toAjax(ivrLibScriptmodelService.updateIvrLibScriptmodel(ivrLibScriptmodel)); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:remove')") |
| | | @Log(title = "AI话术模块", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{modelids}") |
| | | @GetMapping("/remove/{modelids}") |
| | | public AjaxResult remove(@PathVariable Long[] modelids) |
| | | { |
| | | return toAjax(ivrLibScriptmodelService.deleteIvrLibScriptmodelByModelids(modelids)); |