| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | |
| | | * 查询AI意图库列表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibIntent ivrLibIntent) { |
| | | startPage(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:add')") |
| | | @Log(title = "AI意图库", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibIntent ivrLibIntent) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | ivrLibIntent.setOrgid(user.getOrgid()); |
| | | return toAjax(ivrLibIntentService.insertIvrLibIntent(ivrLibIntent)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:edit')") |
| | | @Log(title = "AI意图库", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibIntent ivrLibIntent) { |
| | | return toAjax(ivrLibIntentService.updateIvrLibIntent(ivrLibIntent)); |