From e51a46b34cc4be7a63cc6df08b5cc70a8f011fef Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Tue, 5 Nov 2024 17:08:24 +0900 Subject: [PATCH] fix: generic fix --- .../xit/adds/core/model/ApiBaseResponse.java | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/main/java/cokr/xit/adds/core/model/ApiBaseResponse.java b/src/main/java/cokr/xit/adds/core/model/ApiBaseResponse.java index c27bf74..00fcb26 100644 --- a/src/main/java/cokr/xit/adds/core/model/ApiBaseResponse.java +++ b/src/main/java/cokr/xit/adds/core/model/ApiBaseResponse.java @@ -2,20 +2,16 @@ package cokr.xit.adds.core.model; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.*; -import java.time.LocalDateTime; -import java.time.format.DateTimeFormatter; -import java.util.Objects; +import java.time.*; +import java.time.format.*; +import java.util.*; -import org.apache.commons.lang3.ObjectUtils; +import org.apache.commons.lang3.*; -import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.*; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.AccessLevel; -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; +import io.swagger.v3.oas.annotations.media.*; +import lombok.*; /** *
@@ -88,7 +84,7 @@ public class ApiBaseResponse {
         this.success = true;
         this.code = resultCode.getStatusCode();
         this.message = resultCode.getMessage();
-        this.data = null;
+        this.data = data;
     }
 
     public ApiBaseResponse(Integer code, String message) {