|  |  | 
 |  |  | import java.util.Objects; | 
 |  |  | import java.util.UUID; | 
 |  |  |  | 
 |  |  | //import org.springframework.cache.CacheManager; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * 注解Tag 在API中显示: Tag 注解, 给整个接口起了个名字与描述" | 
 |  |  |  * 注解ApiResponses 和 注解ApiResponse 用来配置响应; | 
 |  |  | 
 |  |  |             ) | 
 |  |  |     }) | 
 |  |  |     @GetMapping(path = "allOrg") | 
 |  |  |     public BaseResponse<List<Org>> allOrg(){ | 
 |  |  |     public BaseResponse<List<Org.OrgVo>> allOrg(){ | 
 |  |  |         //List<Org> list = Arrays.asList(Org.Ym, Org.Pj) ; | 
 |  |  |         return BaseResponseUtils.buildSuccess(Org.OrgList); | 
 |  |  |     } | 
 |  |  | 
 |  |  |     @GetMapping(path = "loginUserId") | 
 |  |  |     public Long loginUserId(String token){ | 
 |  |  |         BaUser userPo = this.sv.getByUuid(token) ; | 
 |  |  |         return userPo == null ? null : userPo.userId ; | 
 |  |  |         return userPo == null ? null : userPo.id ; | 
 |  |  |     } | 
 |  |  |     /** | 
 |  |  |      * 此方法供子模块系统调用,所以不公开在API接口中 | 
 |  |  | 
 |  |  |         if(userPo != null){ | 
 |  |  |             vo.dataSourceName = userPo.orgTag ; | 
 |  |  |             vo.logined = true ; | 
 |  |  |             vo.hasPower = true ;//默认有权限 | 
 |  |  |             vo.hasPower = true ;//默认有权限。2023-12-21 经商议,由前端鉴权 | 
 |  |  |         }else{ | 
 |  |  |             vo.logined = false ; | 
 |  |  |             vo.hasPower = true ;//默认有权限 | 
 |  |  |             vo.hasPower = true ;//默认有权限。2023-12-21 经商议,由前端鉴权 | 
 |  |  |         } | 
 |  |  |         return vo ; | 
 |  |  |     } | 
 |  |  | 
 |  |  |         BaUser userPo = this.sv.getByUuid(token) ; | 
 |  |  |         CurUserVo vo = new CurUserVo(); | 
 |  |  |         if(userPo != null){ | 
 |  |  |             vo.id = userPo.userId ; | 
 |  |  |             vo.id = userPo.id ; | 
 |  |  |             vo.name = userPo.userName; | 
 |  |  |         } | 
 |  |  |         return vo ; |