You've already forked FrameTour-BE
refactor(questionnaire): 移除问卷模块中的健康检查接口
- 删除了 QuestionnaireClient 中的 health 方法 - 删除了 QuestionnaireIntegrationService 中的 health 方法 -移除了与健康检查相关的代码和注释
This commit is contained in:
@@ -114,11 +114,5 @@ public interface QuestionnaireClient {
|
||||
@GetMapping("/responses/{id}")
|
||||
CommonResponse<ResponseDetailResponse> getResponseDetail(@PathVariable("id") Long id);
|
||||
|
||||
// ==================== 健康检查接口 ====================
|
||||
|
||||
/**
|
||||
* 服务健康检查
|
||||
*/
|
||||
@GetMapping("/health")
|
||||
CommonResponse<String> health();
|
||||
}
|
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
// ==================== 工具方法 ====================
|
||||
|
||||
|
Reference in New Issue
Block a user