백엔드 실행 프로파일 작성

This commit is contained in:
cyjadela
2025-10-23 18:33:21 +09:00
parent e8fc0562b9
commit 71d6675d25
445 changed files with 2316 additions and 47 deletions
@@ -100,6 +100,37 @@ public class ApiResponse<T> {
.build();
}
/**
* 에러 응답 생성 (메시지만)
*
* @param message 에러 메시지
* @return 에러 응답
*/
public static ApiResponse<Void> error(String message) {
return ApiResponse.<Void>builder()
.status("error")
.code("GENERAL_ERROR")
.message(message)
.timestamp(LocalDateTime.now())
.build();
}
/**
* 타입 안전한 에러 응답 생성 (메시지만)
*
* @param <T> 응답 데이터 타입
* @param message 에러 메시지
* @return 에러 응답
*/
public static <T> ApiResponse<T> errorWithType(String message) {
return ApiResponse.<T>builder()
.status("error")
.code("GENERAL_ERROR")
.message(message)
.timestamp(LocalDateTime.now())
.build();
}
/**
* 에러 응답 생성 (상세 정보 포함)
*