liusheng
2024-09-21 d3bf339bd64d7b7efddc0afdd4beb1866b8b5a04
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaExtemplateController.java
@@ -34,7 +34,7 @@
     * 查询通过模板列表
     */
    @ApiOperation("查询通过模板列表")
    @PreAuthorize("@ss.hasPermi('smartor:extemplate:list')")
    //@PreAuthorize("@ss.hasPermi('smartor:extemplate:list')")
    @PostMapping("/list")
    public TableDataInfo list(@RequestBody IvrLibaExtemplate ivrLibaExtemplate) {
        startPage();
@@ -46,7 +46,7 @@
     * 导出通过模板列表
     */
    @ApiOperation("导出通过模板列表")
    @PreAuthorize("@ss.hasPermi('smartor:extemplate:export')")
    //@PreAuthorize("@ss.hasPermi('smartor:extemplate:export')")
    @Log(title = "通过模板", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, IvrLibaExtemplate ivrLibaExtemplate) {
@@ -59,7 +59,7 @@
     * 获取通过模板详细信息
     */
    @ApiOperation("获取通过模板详细信息")
    @PreAuthorize("@ss.hasPermi('smartor:extemplate:query')")
    //@PreAuthorize("@ss.hasPermi('smartor:extemplate:query')")
    @GetMapping(value = "/{ID}")
    public AjaxResult getInfo(@PathVariable("ID") String ID) {
        return success(ivrLibaExtemplateService.selectIvrLibaExtemplateByID(ID));
@@ -69,18 +69,18 @@
     * 新增通过模板
     */
    @ApiOperation("新增通过模板")
    @PreAuthorize("@ss.hasPermi('smartor:extemplate:add')")
    //@PreAuthorize("@ss.hasPermi('smartor:extemplate:add')")
    @Log(title = "通过模板", businessType = BusinessType.INSERT)
    @PostMapping("/add")
    public AjaxResult add(@RequestBody IvrLibaExtemplate ivrLibaExtemplate) {
        return toAjax(ivrLibaExtemplateService.insertIvrLibaExtemplate(ivrLibaExtemplate));
        return AjaxResult.success(ivrLibaExtemplateService.insertIvrLibaExtemplate(ivrLibaExtemplate));
    }
    /**
     * 修改通过模板
     */
    @ApiOperation("修改通过模板")
    @PreAuthorize("@ss.hasPermi('smartor:extemplate:edit')")
    //@PreAuthorize("@ss.hasPermi('smartor:extemplate:edit')")
    @Log(title = "通过模板", businessType = BusinessType.UPDATE)
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody IvrLibaExtemplate ivrLibaExtemplate) {
@@ -91,10 +91,10 @@
     * 删除通过模板
     */
    @ApiOperation("删除通过模板")
    @PreAuthorize("@ss.hasPermi('smartor:extemplate:remove')")
    //@PreAuthorize("@ss.hasPermi('smartor:extemplate:remove')")
    @Log(title = "通过模板", businessType = BusinessType.DELETE)
    @GetMapping("/remove/{IDs}")
    public AjaxResult remove(@PathVariable String[] IDs) {
    public AjaxResult remove(@PathVariable Long[] IDs) {
        return toAjax(ivrLibaExtemplateService.deleteIvrLibaExtemplateByIDs(IDs));
    }
}