| | |
| | | * 查询AI话术库分类列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(IvrLibScriptcategory ivrLibScriptcategory) |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibScriptcategory ivrLibScriptcategory) |
| | | { |
| | | startPage(); |
| | | List<IvrLibScriptcategory> list = ivrLibScriptcategoryService.selectIvrLibScriptcategoryList(ivrLibScriptcategory); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:add')") |
| | | @Log(title = "AI话术库分类", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibScriptcategory ivrLibScriptcategory) |
| | | { |
| | | return toAjax(ivrLibScriptcategoryService.insertIvrLibScriptcategory(ivrLibScriptcategory)); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:edit')") |
| | | @Log(title = "AI话术库分类", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibScriptcategory ivrLibScriptcategory) |
| | | { |
| | | return toAjax(ivrLibScriptcategoryService.updateIvrLibScriptcategory(ivrLibScriptcategory)); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:remove')") |
| | | @Log(title = "AI话术库分类", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{categoryids}") |
| | | @GetMapping("/remove/{categoryids}") |
| | | public AjaxResult remove(@PathVariable Long[] categoryids) |
| | | { |
| | | return toAjax(ivrLibScriptcategoryService.deleteIvrLibScriptcategoryByCategoryids(categoryids)); |