liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibIntentController.java
@@ -1,4 +1,4 @@
package com.smartor.controller;
package com.ruoyi.web.controller.smartor;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
@@ -23,7 +23,7 @@
/**
 * AI意图库Controller
 *
 *
 * @author smartor
 * @date 2023-03-06
 */
@@ -37,9 +37,9 @@
    /**
     * 查询AI意图库列表
     */
    @PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:list')")
    @GetMapping("/list")
    public TableDataInfo list(IvrLibIntent ivrLibIntent)
    //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:list')")
   @PostMapping("/list")
    public TableDataInfo list(@RequestBody IvrLibIntent ivrLibIntent)
    {
        startPage();
        List<IvrLibIntent> list = ivrLibIntentService.selectIvrLibIntentList(ivrLibIntent);
@@ -49,7 +49,7 @@
    /**
     * 导出AI意图库列表
     */
    @PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:export')")
    //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:export')")
    @Log(title = "AI意图库", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, IvrLibIntent ivrLibIntent)
@@ -62,7 +62,7 @@
    /**
     * 获取AI意图库详细信息
     */
    @PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:query')")
    //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:query')")
    @GetMapping(value = "/{intentid}")
    public AjaxResult getInfo(@PathVariable("intentid") Long intentid)
    {
@@ -72,9 +72,9 @@
    /**
     * 新增AI意图库
     */
    @PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:add')")
    //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:add')")
    @Log(title = "AI意图库", businessType = BusinessType.INSERT)
    @PostMapping
    @PostMapping("/add")
    public AjaxResult add(@RequestBody IvrLibIntent ivrLibIntent)
    {
        return toAjax(ivrLibIntentService.insertIvrLibIntent(ivrLibIntent));
@@ -83,9 +83,9 @@
    /**
     * 修改AI意图库
     */
    @PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:edit')")
    //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:edit')")
    @Log(title = "AI意图库", businessType = BusinessType.UPDATE)
    @PutMapping
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody IvrLibIntent ivrLibIntent)
    {
        return toAjax(ivrLibIntentService.updateIvrLibIntent(ivrLibIntent));
@@ -94,9 +94,9 @@
    /**
     * 删除AI意图库
     */
    @PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:remove')")
    //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:remove')")
    @Log(title = "AI意图库", businessType = BusinessType.DELETE)
   @DeleteMapping("/{intentids}")
   @GetMapping("/remove/{intentids}")
    public AjaxResult remove(@PathVariable Long[] intentids)
    {
        return toAjax(ivrLibIntentService.deleteIvrLibIntentByIntentids(intentids));