Commit 5337476c by zhouhaibao

[+]组织查询

1 parent 2a404118
......@@ -28,6 +28,18 @@ public interface OrganizationService {
@GetMapping(value = "/getTenantPathsByUserId")
R<List<Organization>> getTenantPathsByUserId(@RequestParam("userId") Long userId);
/**
* 根据userIds获取租户机构
*
* @param userIds
* @return
*/
@GetMapping(value = "/getTenantByUserIds")
R<List<Organization>> getTenantByUserIds(@RequestParam("userIds") List<Long> userIds);
/**
* 获取根组织层级
*
......
......@@ -24,6 +24,12 @@ public class OrganizationServiceFallbackImpl implements OrganizationService {
}
@Override
public R<List<Organization>> getTenantByUserIds(List<Long> userIds) {
log.warn("熔断啦 {}", cause.getMessage());
return R.ok();
}
@Override
public R<List<Organization>> getRootOrganizations() {
log.warn("熔断啦 {}", cause.getMessage());
return R.ok();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!