From bc8b933664de482e087d2df967d30ee7e7d66631 Mon Sep 17 00:00:00 2001 From: riorio805 <sefrianojieftara@gmail.com> Date: Wed, 26 Feb 2025 17:41:00 +0700 Subject: [PATCH] Create AuthResponse DTO to standardize between success and failed response --- .../safetypin/authentication/dto/AuthResponse.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/main/java/com/safetypin/authentication/dto/AuthResponse.java diff --git a/src/main/java/com/safetypin/authentication/dto/AuthResponse.java b/src/main/java/com/safetypin/authentication/dto/AuthResponse.java new file mode 100644 index 0000000..a29962f --- /dev/null +++ b/src/main/java/com/safetypin/authentication/dto/AuthResponse.java @@ -0,0 +1,13 @@ +package com.safetypin.authentication.dto; + +import lombok.*; + +@Data +@Getter +@Setter +@AllArgsConstructor +public class AuthResponse { + private boolean success; + private String message; + private Object data; +} \ No newline at end of file -- GitLab