主服务增加fegin接口调用

This commit is contained in:
刘雅馨
2026-07-06 11:32:26 +08:00
committed by kongxz
parent 045214ae80
commit 7475f9d75d
5 changed files with 78 additions and 1 deletions
@@ -2,6 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>blade-service-api</artifactId>
<groupId>org.springblade</groupId>
@@ -53,6 +53,8 @@ public interface ISysClient {
String DEPT_NAME = API_PREFIX + "/dept-name";
String DEPT_NAMES = API_PREFIX + "/dept-names";
String DEPT_CHILD = API_PREFIX + "/dept-child";
String CURRENT_USER_COMPANY = API_PREFIX + "/current-user-company";
String CURRENT_USER_DEPT = API_PREFIX + "/current-user-dept";
String POST = API_PREFIX + "/post";
String POST_IDS = API_PREFIX + "/post-ids";
String POST_IDS_FUZZY = API_PREFIX + "/post-ids-fuzzy";
@@ -136,6 +138,22 @@ public interface ISysClient {
@GetMapping(DEPT_CHILD)
R<List<Dept>> getDeptChild(@RequestParam("deptId") Long deptId);
/**
* 获取当前登录用户所属公司
*
* @return Dept
*/
@GetMapping(CURRENT_USER_COMPANY)
R<Dept> getCurrentUserCompany();
/**
* 获取当前登录用户所属部门
*
* @return Dept
*/
@GetMapping(CURRENT_USER_DEPT)
R<Dept> getCurrentUserDept();
/**
* 获取岗位
*
@@ -74,6 +74,16 @@ public class ISysClientFallback implements ISysClient {
return R.fail("获取数据失败");
}
@Override
public R<Dept> getCurrentUserCompany() {
return R.fail("获取数据失败");
}
@Override
public R<Dept> getCurrentUserDept() {
return R.fail("获取数据失败");
}
@Override
public R<Post> getPost(Long id) {
return R.fail("获取数据失败");