| | |
| | | * 查询话术模板库列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtemplate:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(IvrLibaTemplate ivrLibaTemplate) |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTemplate ivrLibaTemplate) |
| | | { |
| | | startPage(); |
| | | List<IvrLibaTemplate> list = ivrLibaTemplateService.selectIvrLibaTemplateList(ivrLibaTemplate); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtemplate:add')") |
| | | @Log(title = "话术模板库", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTemplate ivrLibaTemplate) |
| | | { |
| | | return toAjax(ivrLibaTemplateService.insertIvrLibaTemplate(ivrLibaTemplate)); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtemplate:edit')") |
| | | @Log(title = "话术模板库", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTemplate ivrLibaTemplate) |
| | | { |
| | | return toAjax(ivrLibaTemplateService.updateIvrLibaTemplate(ivrLibaTemplate)); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtemplate:remove')") |
| | | @Log(title = "话术模板库", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{templateIDs}") |
| | | @GetMapping("/remove/{templateIDs}") |
| | | public AjaxResult remove(@PathVariable String[] templateIDs) |
| | | { |
| | | return toAjax(ivrLibaTemplateService.deleteIvrLibaTemplateByTemplateIDs(templateIDs)); |