添加部门接口

This commit is contained in:
2023-01-06 15:14:09 +08:00
parent f2851d2a97
commit d778e16165
7 changed files with 51 additions and 1138 deletions

View File

@@ -97,4 +97,10 @@ public interface DeptFeignClient {
*/
@GetMapping("/getSpecialDeptList")
HttpResult<List<Dept>> getSpecialDeptList();
/**
* 获取根部门
*/
@GetMapping("/getRootDept")
HttpResult<Dept> getRootDept();
}

View File

@@ -105,6 +105,12 @@ public class DeptFeignClientFallbackFactory implements FallbackFactory<DeptFeign
log.error("{}异常,降级处理,异常为:{}","查询所有本部异常",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<Dept> getRootDept() {
log.error("{}异常,降级处理,异常为:{}","查询根部门异常",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
};
}
}