liusheng
2024-09-18 722fa40345f1fc650eaeae4a721c3ae4106d92a8
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibScriptcategoryController.java
@@ -37,9 +37,9 @@
    /**
     * 查询AI话术库分类列表
     */
    @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:list')")
    @GetMapping("/list")
    public TableDataInfo list(IvrLibScriptcategory ivrLibScriptcategory)
    //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:list')")
   @PostMapping("/list")
    public TableDataInfo list(@RequestBody IvrLibScriptcategory ivrLibScriptcategory)
    {
        startPage();
        List<IvrLibScriptcategory> list = ivrLibScriptcategoryService.selectIvrLibScriptcategoryList(ivrLibScriptcategory);
@@ -49,7 +49,7 @@
    /**
     * 导出AI话术库分类列表
     */
    @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:export')")
    //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:export')")
    @Log(title = "AI话术库分类", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, IvrLibScriptcategory ivrLibScriptcategory)
@@ -62,7 +62,7 @@
    /**
     * 获取AI话术库分类详细信息
     */
    @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:query')")
    //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:query')")
    @GetMapping(value = "/{categoryid}")
    public AjaxResult getInfo(@PathVariable("categoryid") Long categoryid)
    {
@@ -72,9 +72,9 @@
    /**
     * 新增AI话术库分类
     */
    @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:add')")
    //@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));
@@ -83,9 +83,9 @@
    /**
     * 修改AI话术库分类
     */
    @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:edit')")
    //@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));
@@ -94,9 +94,9 @@
    /**
     * 删除AI话术库分类
     */
    @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:remove')")
    //@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));