Commit a6ddc043 by levphon

新增获取用户可见账号id接口

1 parent 0218ab2c
......@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import java.util.Collection;
import java.util.List;
import java.util.Set;
@FeignClient(
name = "${feign.usercenter.name}",
......@@ -104,4 +105,12 @@ public interface OrganizationService {
@GetMapping(value = "/orgTree", consumes = MediaType.APPLICATION_JSON_VALUE)
R<List<OrgTreeModel>> orgTree(@RequestBody FindOrgRequest request);
/**
* 获取用户下级全部组织(本人、本人及下属角色时,也返回部门id)
*
* @return
*/
@GetMapping(value = "/getAllSubOrgIds", consumes = MediaType.APPLICATION_JSON_VALUE)
R<Set<Long>> getAllSubOrgIds();
}
......@@ -11,6 +11,7 @@ import org.springframework.stereotype.Component;
import java.util.Collection;
import java.util.List;
import java.util.Set;
@Slf4j
@Component
......@@ -73,4 +74,10 @@ public class OrganizationServiceFallbackImpl implements OrganizationService {
return R.ok();
}
@Override
public R<Set<Long>> getAllSubOrgIds() {
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!