Commit 7b229bee by 刘宇峰

用户组织feign开放接口

1 parent 9446c34d
......@@ -66,7 +66,7 @@ public interface OrganizationService {
R<List<Organization>> getSubOrganizations(@RequestParam("orgId") Long orgId);
/**
* 根据用户id获取组织层级
* 根据用户id获取组织
*
* @param userIds
* @return
......@@ -75,6 +75,15 @@ public interface OrganizationService {
R<List<Organization>> getOrgsByUserIds(@RequestParam("userIds") Collection<Long> userIds);
/**
* 根据用户id获取组织-不带权限过滤
*
* @param userIds
* @return
*/
@GetMapping(value = "/getAllUserOrgsByUserIds", consumes = MediaType.APPLICATION_JSON_VALUE)
R<List<Organization>> getAllUserOrgsByUserIds(@RequestParam("userIds") Collection<Long> userIds);
/**
* 获取特定层级的机构
*
* @param level
......
......@@ -55,6 +55,12 @@ public class OrganizationServiceFallbackImpl implements OrganizationService {
}
@Override
public R<List<Organization>> getAllUserOrgsByUserIds(Collection<Long> userIds) {
log.warn("熔断啦 {}", cause.getMessage());
return R.ok();
}
@Override
public R<List<Organization>> getSpecialLevelOrganizations(Integer level) {
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!