| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrexecuteconfig") |
| | | public class IvrSceneExecuteconfigController extends BaseController |
| | | { |
| | | public class IvrSceneExecuteconfigController extends BaseController { |
| | | @Autowired |
| | | private IIvrSceneExecuteconfigService ivrSceneExecuteconfigService; |
| | | |
| | |
| | | * 查询AI外呼执行配置列表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneExecuteconfig ivrSceneExecuteconfig) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrSceneExecuteconfig ivrSceneExecuteconfig) { |
| | | startPage(); |
| | | List<IvrSceneExecuteconfig> list = ivrSceneExecuteconfigService.selectIvrSceneExecuteconfigList(ivrSceneExecuteconfig); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:export')") |
| | | @Log(title = "AI外呼执行配置", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneExecuteconfig ivrSceneExecuteconfig) |
| | | { |
| | | public void export(HttpServletResponse response, IvrSceneExecuteconfig ivrSceneExecuteconfig) { |
| | | List<IvrSceneExecuteconfig> list = ivrSceneExecuteconfigService.selectIvrSceneExecuteconfigList(ivrSceneExecuteconfig); |
| | | ExcelUtil<IvrSceneExecuteconfig> util = new ExcelUtil<IvrSceneExecuteconfig>(IvrSceneExecuteconfig.class); |
| | | util.exportExcel(response, list, "AI外呼执行配置数据"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:query')") |
| | | @GetMapping(value = "/{scenecfgid}") |
| | | public AjaxResult getInfo(@PathVariable("scenecfgid") Long scenecfgid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("scenecfgid") Long scenecfgid) { |
| | | return success(ivrSceneExecuteconfigService.selectIvrSceneExecuteconfigByScenecfgid(scenecfgid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:add')") |
| | | @Log(title = "AI外呼执行配置", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneExecuteconfig ivrSceneExecuteconfig) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrSceneExecuteconfig ivrSceneExecuteconfig) { |
| | | return toAjax(ivrSceneExecuteconfigService.insertIvrSceneExecuteconfig(ivrSceneExecuteconfig)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:edit')") |
| | | @Log(title = "AI外呼执行配置", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneExecuteconfig ivrSceneExecuteconfig) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrSceneExecuteconfig ivrSceneExecuteconfig) { |
| | | return toAjax(ivrSceneExecuteconfigService.updateIvrSceneExecuteconfig(ivrSceneExecuteconfig)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:remove')") |
| | | @Log(title = "AI外呼执行配置", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{scenecfgids}") |
| | | public AjaxResult remove(@PathVariable Long[] scenecfgids) |
| | | { |
| | | @GetMapping("/remove/{scenecfgids}") |
| | | public AjaxResult remove(@PathVariable Long[] scenecfgids) { |
| | | return toAjax(ivrSceneExecuteconfigService.deleteIvrSceneExecuteconfigByScenecfgids(scenecfgids)); |
| | | } |
| | | } |