|  |  |  | 
|---|
|  |  |  | package com.smartor.controller; | 
|---|
|  |  |  | package com.ruoyi.web.controller.smartor; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  | import javax.servlet.http.HttpServletResponse; | 
|---|
|  |  |  | 
|---|
|  |  |  | * 查询扩展话术模板库话术列表 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PreAuthorize("@ss.hasPermi('smartor:ivrextemplatescript:list')") | 
|---|
|  |  |  | @GetMapping("/list") | 
|---|
|  |  |  | public TableDataInfo list(IvrLibaExtemplatescript ivrLibaExtemplatescript) | 
|---|
|  |  |  | @PostMapping("/list") | 
|---|
|  |  |  | public TableDataInfo list(@RequestBody IvrLibaExtemplatescript ivrLibaExtemplatescript) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | startPage(); | 
|---|
|  |  |  | List<IvrLibaExtemplatescript> list = ivrLibaExtemplatescriptService.selectIvrLibaExtemplatescriptList(ivrLibaExtemplatescript); | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PreAuthorize("@ss.hasPermi('smartor:ivrextemplatescript:add')") | 
|---|
|  |  |  | @Log(title = "扩展话术模板库话术", businessType = BusinessType.INSERT) | 
|---|
|  |  |  | @PostMapping | 
|---|
|  |  |  | @PostMapping("/add") | 
|---|
|  |  |  | public AjaxResult add(@RequestBody IvrLibaExtemplatescript ivrLibaExtemplatescript) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return toAjax(ivrLibaExtemplatescriptService.insertIvrLibaExtemplatescript(ivrLibaExtemplatescript)); | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PreAuthorize("@ss.hasPermi('smartor:ivrextemplatescript:edit')") | 
|---|
|  |  |  | @Log(title = "扩展话术模板库话术", businessType = BusinessType.UPDATE) | 
|---|
|  |  |  | @PutMapping | 
|---|
|  |  |  | @PostMapping("/edit") | 
|---|
|  |  |  | public AjaxResult edit(@RequestBody IvrLibaExtemplatescript ivrLibaExtemplatescript) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return toAjax(ivrLibaExtemplatescriptService.updateIvrLibaExtemplatescript(ivrLibaExtemplatescript)); | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PreAuthorize("@ss.hasPermi('smartor:ivrextemplatescript:remove')") | 
|---|
|  |  |  | @Log(title = "扩展话术模板库话术", businessType = BusinessType.DELETE) | 
|---|
|  |  |  | @DeleteMapping("/{DetailIDs}") | 
|---|
|  |  |  | @GetMapping("/remove/{DetailIDs}") | 
|---|
|  |  |  | public AjaxResult remove(@PathVariable String[] DetailIDs) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return toAjax(ivrLibaExtemplatescriptService.deleteIvrLibaExtemplatescriptByDetailIDs(DetailIDs)); | 
|---|