| | |
| | | |
| | | 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; |
| | |
| | | |
| | | /** |
| | | * AI外呼全局配置Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-06 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrglobalconfig") |
| | | public class IvrSceneGlobalconfigController extends BaseController |
| | | { |
| | | public class IvrSceneGlobalconfigController extends BaseController { |
| | | @Autowired |
| | | private IIvrSceneGlobalconfigService ivrSceneGlobalconfigService; |
| | | |
| | |
| | | * 查询AI外呼全局配置列表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneGlobalconfig ivrSceneGlobalconfig) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrSceneGlobalconfig ivrSceneGlobalconfig) { |
| | | startPage(); |
| | | List<IvrSceneGlobalconfig> list = ivrSceneGlobalconfigService.selectIvrSceneGlobalconfigList(ivrSceneGlobalconfig); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:export')") |
| | | @Log(title = "AI外呼全局配置", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneGlobalconfig ivrSceneGlobalconfig) |
| | | { |
| | | public void export(HttpServletResponse response, IvrSceneGlobalconfig ivrSceneGlobalconfig) { |
| | | List<IvrSceneGlobalconfig> list = ivrSceneGlobalconfigService.selectIvrSceneGlobalconfigList(ivrSceneGlobalconfig); |
| | | ExcelUtil<IvrSceneGlobalconfig> util = new ExcelUtil<IvrSceneGlobalconfig>(IvrSceneGlobalconfig.class); |
| | | util.exportExcel(response, list, "AI外呼全局配置数据"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:query')") |
| | | @GetMapping(value = "/{gblconfigid}") |
| | | public AjaxResult getInfo(@PathVariable("gblconfigid") Long gblconfigid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("gblconfigid") Long gblconfigid) { |
| | | return success(ivrSceneGlobalconfigService.selectIvrSceneGlobalconfigByGblconfigid(gblconfigid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:add')") |
| | | @Log(title = "AI外呼全局配置", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneGlobalconfig ivrSceneGlobalconfig) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrSceneGlobalconfig ivrSceneGlobalconfig) { |
| | | return toAjax(ivrSceneGlobalconfigService.insertIvrSceneGlobalconfig(ivrSceneGlobalconfig)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:edit')") |
| | | @Log(title = "AI外呼全局配置", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneGlobalconfig ivrSceneGlobalconfig) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrSceneGlobalconfig ivrSceneGlobalconfig) { |
| | | return toAjax(ivrSceneGlobalconfigService.updateIvrSceneGlobalconfig(ivrSceneGlobalconfig)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:remove')") |
| | | @Log(title = "AI外呼全局配置", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{gblconfigids}") |
| | | public AjaxResult remove(@PathVariable Long[] gblconfigids) |
| | | { |
| | | @GetMapping("/remove/{gblconfigids}") |
| | | public AjaxResult remove(@PathVariable Long[] gblconfigids) { |
| | | return toAjax(ivrSceneGlobalconfigService.deleteIvrSceneGlobalconfigByGblconfigids(gblconfigids)); |
| | | } |
| | | } |