| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | * 查询AI服务场景管理分类列表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrScenecategory ivrScenecategory) { |
| | | startPage(); |
| | | List<IvrScenecategory> list = ivrScenecategoryService.selectIvrScenecategoryList(ivrScenecategory); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:add')") |
| | | @Log(title = "AI服务场景管理分类", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrScenecategory ivrScenecategory) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:edit')") |
| | | @Log(title = "AI服务场景管理分类", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrScenecategory ivrScenecategory) { |
| | | return toAjax(ivrScenecategoryService.updateIvrScenecategory(ivrScenecategory)); |