添加部门接口
This commit is contained in:
@@ -97,4 +97,10 @@ public interface DeptFeignClient {
|
||||
*/
|
||||
@GetMapping("/getSpecialDeptList")
|
||||
HttpResult<List<Dept>> getSpecialDeptList();
|
||||
|
||||
/**
|
||||
* 获取根部门
|
||||
*/
|
||||
@GetMapping("/getRootDept")
|
||||
HttpResult<Dept> getRootDept();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user