From 10aaa035f5be0312304d20f022bdb714a8f4900a Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期三, 11 十二月 2024 22:16:23 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedRegistrationController.java | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedRegistrationController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedRegistrationController.java index 442fec0..94afd1a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedRegistrationController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedRegistrationController.java @@ -8,6 +8,8 @@ import com.ruoyi.common.utils.poi.ExcelUtil; import com.smartor.domain.PatMedRegistration; import com.smartor.service.IPatMedRegistrationService; +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.*; @@ -21,6 +23,7 @@ * @author ruoyi * @date 2024-08-01 */ +@Api(description = " 鎮h�呮寕鍙疯褰�") @RestController @RequestMapping("/smartor/registration") public class PatMedRegistrationController extends BaseController { @@ -30,7 +33,8 @@ /** * 鏌ヨ鎮h�呮寕鍙疯褰曞垪琛� */ - @PreAuthorize("@ss.hasPermi('system:registration:list')") + @ApiOperation("鏌ヨ鎮h�呮寕鍙疯褰曞垪琛�") + //@PreAuthorize("@ss.hasPermi('system:registration:list')") @GetMapping("/list") public TableDataInfo list(PatMedRegistration patMedRegistration) { startPage(); @@ -41,7 +45,8 @@ /** * 瀵煎嚭鎮h�呮寕鍙疯褰曞垪琛� */ - @PreAuthorize("@ss.hasPermi('system:registration:export')") + @ApiOperation("瀵煎嚭鎮h�呮寕鍙疯褰曞垪琛�") + //@PreAuthorize("@ss.hasPermi('system:registration:export')") @Log(title = "鎮h�呮寕鍙疯褰�", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, PatMedRegistration patMedRegistration) { @@ -53,7 +58,8 @@ /** * 鑾峰彇鎮h�呮寕鍙疯褰曡缁嗕俊鎭� */ - @PreAuthorize("@ss.hasPermi('system:registration:query')") + @ApiOperation("鑾峰彇鎮h�呮寕鍙疯褰曡缁嗕俊鎭�") + //@PreAuthorize("@ss.hasPermi('system:registration:query')") @GetMapping(value = "/getInfo/{registid}") public AjaxResult getInfo(@PathVariable("registid") Long registid) { return success(patMedRegistrationService.selectPatMedRegistrationByRegistid(registid)); @@ -62,7 +68,8 @@ /** * 鏂板鎮h�呮寕鍙疯褰� */ - @PreAuthorize("@ss.hasPermi('system:registration:add')") + @ApiOperation("鏂板鎮h�呮寕鍙疯褰�") + //@PreAuthorize("@ss.hasPermi('system:registration:add')") @Log(title = "鎮h�呮寕鍙疯褰�", businessType = BusinessType.INSERT) @PostMapping("/add") public AjaxResult add(@RequestBody PatMedRegistration patMedRegistration) { @@ -72,7 +79,8 @@ /** * 淇敼鎮h�呮寕鍙疯褰� */ - @PreAuthorize("@ss.hasPermi('system:registration:edit')") + @ApiOperation("淇敼鎮h�呮寕鍙疯褰�") + //@PreAuthorize("@ss.hasPermi('system:registration:edit')") @Log(title = "鎮h�呮寕鍙疯褰�", businessType = BusinessType.UPDATE) @PostMapping("/edit") public AjaxResult edit(@RequestBody PatMedRegistration patMedRegistration) { @@ -82,7 +90,8 @@ /** * 鍒犻櫎鎮h�呮寕鍙疯褰� */ - @PreAuthorize("@ss.hasPermi('system:registration:remove')") + @ApiOperation("鍒犻櫎鎮h�呮寕鍙疯褰�") + //@PreAuthorize("@ss.hasPermi('system:registration:remove')") @Log(title = "鎮h�呮寕鍙疯褰�", businessType = BusinessType.DELETE) @GetMapping("/remove/{registids}") public AjaxResult remove(@PathVariable Long[] registids) { -- Gitblit v1.9.3