From 5cdf5c84b04951a6fe43fbe622335f0a14b44f77 Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期六, 22 六月 2024 18:18:26 +0800 Subject: [PATCH] 修改了权限的代码 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfDoctorShareController.java | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfDoctorShareController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfDoctorShareController.java index a320d6a..1cb8036 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfDoctorShareController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfDoctorShareController.java @@ -4,10 +4,7 @@ import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.domain.ShareMore; import com.ruoyi.service.ZfDoctorShareService; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; @@ -37,9 +34,9 @@ /** * 鐢ㄦ埛鑷繁鏌ョ湅鍒汉鍒嗕韩鐨勬暟鎹拰鍒嗕韩浜� */ - @PostMapping("/getInfoByShareId") - public AjaxResult empowerGetInfo2(@RequestBody Long shareId){ - return zfDoctorShareService.listByUserId(shareId); + @GetMapping("/getInfoByShareId") + public AjaxResult empowerGetInfo2(){ + return zfDoctorShareService.listByUserId(); } /** * 鏍规嵁userId鍜宻hareId鏀跺洖宸茬粡鎺堟潈缁欓偅浜涗汉 -- Gitblit v1.9.1