From ac79f032745c975eb77d6fb148ed390f2373559e Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 28 十二月 2023 17:58:52 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaExtemplateController.java | 86 ++++++++++++++++++++++--------------------- 1 files changed, 44 insertions(+), 42 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaExtemplateController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaExtemplateController.java index 160d7e3..1936d31 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaExtemplateController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaExtemplateController.java @@ -1,43 +1,40 @@ package com.ruoyi.web.controller.smartor; -import java.util.List; -import javax.servlet.http.HttpServletResponse; - -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.PutMapping; -import org.springframework.web.bind.annotation.DeleteMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.smartor.domain.IvrLibaExtemplate; import com.smartor.service.IIvrLibaExtemplateService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +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.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; /** - * 鎵╁睍璇濇湳妯℃澘搴揅ontroller + * 閫氳繃妯℃澘Controller * - * @author smartor - * @date 2023-03-22 + * @author ruoyi + * @date 2023-12-27 */ +@Api(description = "閫氳繃妯℃澘") @RestController -@RequestMapping("/smartor/ivrextemplate") +@RequestMapping("/smartor/extemplate") public class IvrLibaExtemplateController extends BaseController { @Autowired private IIvrLibaExtemplateService ivrLibaExtemplateService; /** - * 鏌ヨ鎵╁睍璇濇湳妯℃澘搴撳垪琛� + * 鏌ヨ閫氳繃妯℃澘鍒楄〃 */ - @PreAuthorize("@ss.hasPermi('smartor:ivrextemplate:list')") + @ApiOperation("鏌ヨ閫氳繃妯℃澘鍒楄〃") + @PreAuthorize("@ss.hasPermi('smartor:extemplate:list')") @PostMapping("/list") public TableDataInfo list(@RequestBody IvrLibaExtemplate ivrLibaExtemplate) { startPage(); @@ -46,53 +43,58 @@ } /** - * 瀵煎嚭鎵╁睍璇濇湳妯℃澘搴撳垪琛� + * 瀵煎嚭閫氳繃妯℃澘鍒楄〃 */ - @PreAuthorize("@ss.hasPermi('smartor:ivrextemplate:export')") - @Log(title = "鎵╁睍璇濇湳妯℃澘搴�", businessType = BusinessType.EXPORT) + @ApiOperation("瀵煎嚭閫氳繃妯℃澘鍒楄〃") + @PreAuthorize("@ss.hasPermi('smartor:extemplate:export')") + @Log(title = "閫氳繃妯℃澘", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, IvrLibaExtemplate ivrLibaExtemplate) { List<IvrLibaExtemplate> list = ivrLibaExtemplateService.selectIvrLibaExtemplateList(ivrLibaExtemplate); ExcelUtil<IvrLibaExtemplate> util = new ExcelUtil<IvrLibaExtemplate>(IvrLibaExtemplate.class); - util.exportExcel(response, list, "鎵╁睍璇濇湳妯℃澘搴撴暟鎹�"); + util.exportExcel(response, list, "閫氳繃妯℃澘鏁版嵁"); } /** - * 鑾峰彇鎵╁睍璇濇湳妯℃澘搴撹缁嗕俊鎭� + * 鑾峰彇閫氳繃妯℃澘璇︾粏淇℃伅 */ - @PreAuthorize("@ss.hasPermi('smartor:ivrextemplate:query')") - @GetMapping(value = "/{subModuleID}") - public AjaxResult getInfo(@PathVariable("subModuleID") String subModuleID) { - return success(ivrLibaExtemplateService.selectIvrLibaExtemplateBySubModuleID(subModuleID)); + @ApiOperation("鑾峰彇閫氳繃妯℃澘璇︾粏淇℃伅") + @PreAuthorize("@ss.hasPermi('smartor:extemplate:query')") + @GetMapping(value = "/{ID}") + public AjaxResult getInfo(@PathVariable("ID") String ID) { + return success(ivrLibaExtemplateService.selectIvrLibaExtemplateByID(ID)); } /** - * 鏂板鎵╁睍璇濇湳妯℃澘搴� + * 鏂板閫氳繃妯℃澘 */ - @PreAuthorize("@ss.hasPermi('smartor:ivrextemplate:add')") - @Log(title = "鎵╁睍璇濇湳妯℃澘搴�", businessType = BusinessType.INSERT) + @ApiOperation("鏂板閫氳繃妯℃澘") + @PreAuthorize("@ss.hasPermi('smartor:extemplate:add')") + @Log(title = "閫氳繃妯℃澘", businessType = BusinessType.INSERT) @PostMapping("/add") public AjaxResult add(@RequestBody IvrLibaExtemplate ivrLibaExtemplate) { return toAjax(ivrLibaExtemplateService.insertIvrLibaExtemplate(ivrLibaExtemplate)); } /** - * 淇敼鎵╁睍璇濇湳妯℃澘搴� + * 淇敼閫氳繃妯℃澘 */ - @PreAuthorize("@ss.hasPermi('smartor:ivrextemplate:edit')") - @Log(title = "鎵╁睍璇濇湳妯℃澘搴�", businessType = BusinessType.UPDATE) + @ApiOperation("淇敼閫氳繃妯℃澘") + @PreAuthorize("@ss.hasPermi('smartor:extemplate:edit')") + @Log(title = "閫氳繃妯℃澘", businessType = BusinessType.UPDATE) @PostMapping("/edit") public AjaxResult edit(@RequestBody IvrLibaExtemplate ivrLibaExtemplate) { return toAjax(ivrLibaExtemplateService.updateIvrLibaExtemplate(ivrLibaExtemplate)); } /** - * 鍒犻櫎鎵╁睍璇濇湳妯℃澘搴� + * 鍒犻櫎閫氳繃妯℃澘 */ - @PreAuthorize("@ss.hasPermi('smartor:ivrextemplate:remove')") - @Log(title = "鎵╁睍璇濇湳妯℃澘搴�", businessType = BusinessType.DELETE) - @GetMapping("/remove/{subModuleIDs}") - public AjaxResult remove(@PathVariable String[] subModuleIDs) { - return toAjax(ivrLibaExtemplateService.deleteIvrLibaExtemplateBySubModuleIDs(subModuleIDs)); + @ApiOperation("鍒犻櫎閫氳繃妯℃澘") + @PreAuthorize("@ss.hasPermi('smartor:extemplate:remove')") + @Log(title = "閫氳繃妯℃澘", businessType = BusinessType.DELETE) + @GetMapping("/remove/{IDs}") + public AjaxResult remove(@PathVariable String[] IDs) { + return toAjax(ivrLibaExtemplateService.deleteIvrLibaExtemplateByIDs(IDs)); } } -- Gitblit v1.9.3