| | |
| | | import com.smartor.domain.IvrLibaScriptAssort; |
| | | import com.smartor.domain.IvrLibaScriptAssortVO; |
| | | import com.smartor.service.IIvrLibaScriptAssortService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | * @author ruoyi |
| | | * @date 2023-12-21 |
| | | */ |
| | | @Api(description = "问题话术分类库") |
| | | @RestController |
| | | @RequestMapping("/smartor/scriptassort") |
| | | public class IvrLibaScriptAssortController extends BaseController { |
| | |
| | | * 查询问题话术分类库(树状) |
| | | * 列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:assort:list')") |
| | | @ApiOperation("查询问题话术分类库(树状)") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:list')") |
| | | @PostMapping("/selectIvrLibaScriptAssortList") |
| | | public TableDataInfo list(@RequestBody IvrLibaScriptAssort ivrLibaScriptAssort) { |
| | | List<IvrLibaScriptAssortVO> list = ivrLibaScriptAssortService.selectIvrLibaScriptAssortList(ivrLibaScriptAssort); |
| | |
| | | * 导出问题话术分类库 |
| | | * 列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:assort:export')") |
| | | @ApiOperation("导出问题话术分类库") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:export')") |
| | | @Log(title = "问题话术分类库", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaScriptAssort ivrLibaScriptAssort) { |
| | |
| | | * 获取问题话术分类库 |
| | | * 详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:assort:query')") |
| | | @ApiOperation("获取问题话术分类库") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrLibaScriptAssortService.selectIvrLibaScriptAssortById(id)); |
| | |
| | | /** |
| | | * 新增问题话术分类库 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | @ApiOperation("新增问题话术分类库") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | @Log(title = "问题话术分类库", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaScriptAssort ivrLibaScriptAssort) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * 新增问题话术分类树 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | @Log(title = "问题话术分类库", businessType = BusinessType.INSERT) |
| | | @ApiOperation("新增问题话术分类树") |
| | | @PostMapping("/addtree") |
| | | public AjaxResult addtree(@RequestBody IvrLibaScriptAssortVO ivrLibaScriptAssortVO) { |
| | | return toAjax(ivrLibaScriptAssortService.insertIvrLibaScriptAssortTree(ivrLibaScriptAssortVO)); |
| | | } |
| | | |
| | | /** |
| | | * 修改问题话术分类库 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:assort:edit')") |
| | | @ApiOperation("修改问题话术分类库") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:edit')") |
| | | @Log(title = "问题话术分类库", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaScriptAssort ivrLibaScriptAssort) { |
| | |
| | | /** |
| | | * 删除问题话术分类库 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:assort:remove')") |
| | | @ApiOperation("删除问题话术分类库") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:remove')") |
| | | @Log(title = "问题话术分类库", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |