zqy
2024-06-11 41704e538bd0402b8e8ca826404ba84f6de56fe5
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和shareId收回已经授权给那些人