refactor(questionnaire): 移除问卷模块中的健康检查接口

- 删除了 QuestionnaireClient 中的 health 方法
- 删除了 QuestionnaireIntegrationService 中的 health 方法
-移除了与健康检查相关的代码和注释
This commit is contained in:
2025-09-19 13:33:20 +08:00
parent ad33b1abef
commit 292157885a
2 changed files with 0 additions and 19 deletions

View File

@@ -114,11 +114,5 @@ public interface QuestionnaireClient {
@GetMapping("/responses/{id}")
CommonResponse<ResponseDetailResponse> getResponseDetail(@PathVariable("id") Long id);
// ==================== 健康检查接口 ====================
/**
* 服务健康检查
*/
@GetMapping("/health")
CommonResponse<String> health();
}

View File

@@ -121,20 +121,7 @@ public class QuestionnaireIntegrationService {
return handleResponse(response, "提交问卷答案失败");
}
// ==================== 健康检查接口 ====================
public String health() {
log.debug("问卷服务健康检查");
return fallbackService.executeWithFallback(
SERVICE_NAME,
"health",
() -> {
CommonResponse<String> response = questionnaireClient.health();
return handleResponse(response, "健康检查失败");
},
String.class
);
}
// ==================== 工具方法 ====================